All Data Structures Functions Variables Pages
Protected Member Functions
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)
 
- Protected Member Functions inherited from Element
 renderLabel ()
 
 resolveIdForLabel ()
 
 getFormattedAttributeLabel ()
 
 resolveNonActiveFormFormattedLabel ($label)
 
 renderError ()
 
 renderScopedErrorId ($inputNameIdPrefix, $attribute)
 
 renderEditable ()
 
 renderNonEditable ()
 
 renderControlEditable ()
 
 renderControlNonEditable ()
 
 getColumnSpan ()
 
 getDisabledValue ()
 
 getHtmlOptions ()
 
 resolveContentTemplate ($template, $data)
 
 getEditableInputId ($attributeName=null, $relationAttributeName=null)
 
 getEditableInputName ($attributeName=null, $relationAttributeName=null)
 
 resolveInputPrefix ()
 
 resolveInputIdPrefix ()
 
 resolveInputNamePrefix ()
 
 getListViewGridId ()
 

Additional Inherited Members

- Public Member Functions inherited from Element
 __construct ($model, $attribute, $form=null, array $params=array())
 
 render ()
 
 getEditableNameIds ()
 
 getAttribute ()
 
 renderAsControlNonEditable ()
 
- Static Public Member Functions inherited from Element
static getDisplayName ()
 
static isReadOnly ()
 
static resolveInputNameForEditableInput ($attributeName)
 
static resolveInputNamePrefixIntoString ($inputNamePrefix)
 
static resolveInputIdPrefixIntoString ($inputIdPrefix)
 
- Data Fields inherited from Element
 $params
 
 $editableTemplate = '<th>{label}</th><td colspan="{colspan}">{content}{error}</td>'
 
 $nonEditableTemplate = '<th>{label}</th><td colspan="{colspan}">{content}</td>'
 
- Protected Attributes inherited from Element
 $model
 
 $attribute
 
 $form
 

Detailed Description

Definition at line 37 of file SellPriceFormulaInformationElement.php.

Member Function Documentation

renderControlNonEditable ( )
protected
Returns
string

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.

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.

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:
Generated on Sun Apr 5 2020 07:11:19