AddressElement Class Reference

Inheritance diagram for AddressElement:
Element MultipleAttributesElementInterface

Static Public Member Functions

static getModelAttributeNames ()

Data Fields

 $breakLines = true

Protected Member Functions

 renderControlNonEditable ()
 renderControlEditable ()
 renderEditableAddressTextField ($model, $form, $inputNameIdPrefix, $attribute, $renderAsHalfSize=false)
 renderMapLink ($addressModel, $addressLine)
 resolveAjaxOptionsForMapLink ()
 renderError ()
 renderLabel ()
 resolveHtmlAndTextBreakLine ()
 resolveTextBreakLine ()

Detailed Description

Display a collection of address fields Collection includes street1, street2, city, state, postal code, and country.

Definition at line 42 of file AddressElement.php.


Member Function Documentation

renderControlNonEditable (  )  [protected]

Renders the noneditable address content. Takes the model attribute value and converts it into at most 6 items which form the collection.

Returns:
A string containing the element's content.

Reimplemented from Element.

Definition at line 52 of file AddressElement.php.

renderControlEditable (  )  [protected]

Renders the editable address content. Takes the model attribute value and converts it into at most 6 items.

Returns:
A string containing the element's content

Reimplemented from Element.

Definition at line 110 of file AddressElement.php.

renderMapLink ( addressModel,
addressLine 
) [protected]

Render a map link. This link calls a modal popup.

Returns:
The element's content as a string.

Definition at line 161 of file AddressElement.php.

renderError (  )  [protected]

Generate the error content. Used by editable content

Returns:
error content

Reimplemented from Element.

Definition at line 187 of file AddressElement.php.

renderLabel (  )  [protected]

Generate the element label content

Returns:
A string containing the element's label

Reimplemented from Element.

Definition at line 191 of file AddressElement.php.

static getModelAttributeNames (  )  [static]

Gets related model attribute names

Returns:
array

Implements MultipleAttributesElementInterface.

Definition at line 218 of file AddressElement.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri Mar 24 07:10:22 2017