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


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.

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

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.

array of model attributeNames used.

Implements DerivedElementInterface.

Reimplemented in ImportMappingRuleDefaultModelNameIdElement.

Definition at line 111 of file NameIdElement.php.

getName (  )  [protected]
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]
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:

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 Mon Mar 27 07:10:27 2017