CurrencyValueElement Class Reference

Inheritance diagram for CurrencyValueElement:
TextElement Element CurrencyValueForSearchElement CurrencyValueForModalSearchElement

Protected Member Functions

 renderControlEditable ()
 renderEditableValueTextField ($model, $form, $inputNameIdPrefix, $attribute, $parentModel=null)
 renderControlNonEditable ()
 renderError ()
 renderLabel ()
 renderExtraEditableContent ()
 resolveParamsForCurrencyId (&$params)
 resolveAndGetEditableValue ($model, $attribute)

Detailed Description

Renders currencyValue input/display and currency code information. This element is used to input currency attribute type values in the user interface on a model.

Definition at line 41 of file CurrencyValueElement.php.


Member Function Documentation

renderControlEditable (  )  [protected]

Renders the editable currency attribute. Also renders a currency id selector if there is more than one currency. If there is only one currency, then show a display only currency code with a hidden input for the currency id. //todo: only showing hidden currency id

Returns:
A string containing the element's content

Reimplemented from TextElement.

Definition at line 49 of file CurrencyValueElement.php.

renderControlNonEditable (  )  [protected]

Renders the noneditable currency content formatted into the localized format and with the currency symbol.

Returns:
A string containing the element's content.

Reimplemented from TextElement.

Definition at line 91 of file CurrencyValueElement.php.

renderError (  )  [protected]

Generate the error content. Used by editable content

Returns:
error content

Reimplemented from Element.

Definition at line 99 of file CurrencyValueElement.php.

renderLabel (  )  [protected]

Generate the element label content

Returns:
A string containing the element's label

Reimplemented from Element.

Definition at line 103 of file CurrencyValueElement.php.

renderExtraEditableContent (  )  [protected]

Override as needed

Reimplemented in CurrencyValueForModalSearchElement, and CurrencyValueForSearchElement.

Definition at line 116 of file CurrencyValueElement.php.

resolveParamsForCurrencyId ( &$  params  )  [protected]

Override as needed

Reimplemented in CurrencyValueForModalSearchElement, and CurrencyValueForSearchElement.

Definition at line 123 of file CurrencyValueElement.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Tue Jul 25 07:10:24 2017