SellPriceFormulaInformationElement Class Reference

Inheritance diagram for SellPriceFormulaInformationElement:
Element

Protected Member Functions

 renderControlNonEditable ()
 renderControlEditable ()
 renderNameDropDown ($model, $form, $inputNameIdPrefix, $attribute)
 renderDiscountOrMarkupPercentageTextField ($model, $form, $inputNameIdPrefix, $attribute)
 renderError ()
 registerScripts ()
 resolveInputDisplayStyle ($model)

Detailed Description

Definition at line 37 of file SellPriceFormulaInformationElement.php.


Member Function Documentation

renderControlNonEditable (  )  [protected]
Returns:
string

Reimplemented from Element.

Definition at line 42 of file SellPriceFormulaInformationElement.php.

renderControlEditable (  )  [protected]

Renders the editable sell price formula content. It consist of 2 items Name and discountOrMarkupPercentage where discountOrMarkupPercentage would be dependent on Name selected

Returns:
A string containing the element's content.

Reimplemented from Element.

Definition at line 70 of file SellPriceFormulaInformationElement.php.

renderNameDropDown ( model,
form,
inputNameIdPrefix,
attribute 
) [protected]

Renders the Sell Price Formula Dropdown

Parameters:
RedBeanModel $model
Object $form
string $inputNameIdPrefix
string $attribute
Returns:
string

Definition at line 88 of file SellPriceFormulaInformationElement.php.

renderDiscountOrMarkupPercentageTextField ( model,
form,
inputNameIdPrefix,
attribute 
) [protected]

Renders discount text field

Parameters:
RedBeanModel $model
Object $form
string $inputNameIdPrefix
string $attribute
Returns:
string

Definition at line 113 of file SellPriceFormulaInformationElement.php.

renderError (  )  [protected]

Generate the error content. Used by editable content

Returns:
error content

Reimplemented from Element.

Definition at line 128 of file SellPriceFormulaInformationElement.php.

registerScripts (  )  [protected]

Registers the script required on usage of sell price formula

Definition at line 135 of file SellPriceFormulaInformationElement.php.

resolveInputDisplayStyle ( model  )  [protected]

Resolves input display style

Parameters:
RedBean $model
Returns:
string

Definition at line 164 of file SellPriceFormulaInformationElement.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Sep 25 07:10:30 2017