NameIdElement Class Reference

Inheritance diagram for NameIdElement:
ModelElement DerivedElementInterface Element ElementActionTypeInterface AccountNameIdElement ContactNameIdElement ImportMappingRuleDefaultModelNameIdElement LeadNameIdElement MarketingListNameIdElement OwnerNameIdElement ReportNameIdElement UserNameIdElement

Public Member Functions

 setNameAttributeName ($nameAttributeName)

Static Public Member Functions

static getModelAttributeNames ()

Protected Member Functions

 renderControlEditable ()
 renderControlNonEditable ()
 renderLabel ()
 renderError ()
 getIdForHiddenField ()
 getNameForHiddenField ()
 getIdForTextField ()
 getNameForTextField ()
 getIdForSelectLink ()
 getName ()
 getId ()
 getResolvedModel ()
 resolveSourceModelIdForModalTransferInformation ()

Protected Attributes

 $nameAttributeName

Static Protected Attributes

static $moduleId

Detailed Description

Display the name and hidden id of the model. Displays a select button and auto-complete input

Definition at line 41 of file NameIdElement.php.


Member Function Documentation

renderControlNonEditable (  )  [protected]

Renders the attribute from the model.

Returns:
The element's content.

Reimplemented from ModelElement.

Definition at line 61 of file NameIdElement.php.

renderLabel (  )  [protected]

Override to support the module labels for the models.

Reimplemented from ModelElement.

Reimplemented in AnyContactNameIdElement.

Definition at line 66 of file NameIdElement.php.

renderError (  )  [protected]

Generate the error content. Used by editable content

Returns:
error content

Reimplemented from Element.

Definition at line 76 of file NameIdElement.php.

static getModelAttributeNames (  )  [static]

Get the attributeNames of attributes used in the derived element.

Returns:
array of model attributeNames used.

Implements DerivedElementInterface.

Reimplemented in ImportMappingRuleDefaultModelNameIdElement.

Definition at line 111 of file NameIdElement.php.

getName (  )  [protected]
Returns:
stringified name if it exists or empty string to avoid (unnamed) being shown.

Reimplemented from ModelElement.

Definition at line 119 of file NameIdElement.php.

getId (  )  [protected]
Returns:
id if a real model, otherwise an empty string to ensure the
See also:
ZurmoHtml::activeInputField works properly when resolving the id.

Reimplemented from ModelElement.

Definition at line 124 of file NameIdElement.php.

getResolvedModel (  )  [protected]

Override to return the model, since there are no related models on the model passed into this element.

Reimplemented from ModelElement.

Definition at line 133 of file NameIdElement.php.

resolveSourceModelIdForModalTransferInformation (  )  [protected]

SourceModelId is not important for using the NameIdElement (non-PHPdoc)

See also:
ModelElement::resolveSourceModelIdForModalTransferInformation()

Reimplemented from ModelElement.

Definition at line 143 of file NameIdElement.php.


Field Documentation

$moduleId [static, protected]

Override in child element with a specific moduleId

Reimplemented from ModelElement.

Reimplemented in AccountNameIdElement, ContactNameIdElement, LeadNameIdElement, MarketingListNameIdElement, ReportNameIdElement, OwnerNameIdElement, and UserNameIdElement.

Definition at line 43 of file NameIdElement.php.

$nameAttributeName [protected]

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sat Apr 29 07:10:26 2017