All Data Structures Functions Variables Pages
Static Public Member Functions | Data Fields | Protected Member Functions
AddressElement Class Reference
Inheritance diagram for AddressElement:
Element MultipleAttributesElementInterface

Static Public Member Functions

static getModelAttributeNames ()
 
- Static Public Member Functions inherited from Element
static getDisplayName ()
 
static isReadOnly ()
 
static resolveInputNameForEditableInput ($attributeName)
 
static resolveInputNamePrefixIntoString ($inputNamePrefix)
 
static resolveInputIdPrefixIntoString ($inputIdPrefix)
 

Data Fields

 $breakLines = true
 
- 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 Member Functions

 renderControlNonEditable ()
 
 renderControlEditable ()
 
 renderEditableAddressTextField ($model, $form, $inputNameIdPrefix, $attribute, $renderAsHalfSize=false)
 
 renderMapLink ($addressModel, $addressLine)
 
 resolveAjaxOptionsForMapLink ()
 
 renderError ()
 
 renderLabel ()
 
 resolveHtmlAndTextBreakLine ()
 
 resolveTextBreakLine ()
 
- 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 ()
 
- Protected Attributes inherited from Element
 $model
 
 $attribute
 
 $form
 

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.

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

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.

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:
Generated on Mon Jan 27 2020 07:10:31