ImportMappingRuleDefaultModelNameIdElement Class Reference

Inheritance diagram for ImportMappingRuleDefaultModelNameIdElement:
NameIdElement ModelElement DerivedElementInterface Element ElementActionTypeInterface ImportMappingRuleRoleModelNameIdElement

Public Member Functions

 __construct ($model, $attribute, $form=null, array $params=array())

Static Public Member Functions

static getModuleId ()
static getModelAttributeNames ()

Protected Member Functions

 resolveModuleId ()
 getModalTitleForSelectingModel ()

Protected Attributes

 $idAttributeId = 'defaultModelId'
 $nameAttributeName = 'defaultModelStringifiedName'

Detailed Description

Element used in the import mapping process. This is used specifically for relation attributes where a model modal popup/auto-complete input are needed. Unlike other overrides of NameIdElement, this class is not tied to a specific model and can be used with any model class.

Definition at line 42 of file ImportMappingRuleDefaultModelNameIdElement.php.

Constructor & Destructor Documentation

__construct ( model,
form = null,
array $  params = array() 

Override to ensure the model is the correct type of model. Also nullifying the attribute since it will not be used by this element. Setting the null to a string version of 'null' which is how the view metadata normally sends this value in.

Reimplemented from Element.

Definition at line 53 of file ImportMappingRuleDefaultModelNameIdElement.php.

Member Function Documentation

resolveModuleId (  )  [protected]

Override to get the correct module Id. In the typical use of NameIdElement, the module id is statically defined on the overrides, but since this element is used in a dynamic way and not attached to any particular model, this override is necessary.

See also:

Reimplemented from ModelElement.

Reimplemented in ImportMappingRuleRoleModelNameIdElement.

Definition at line 66 of file ImportMappingRuleDefaultModelNameIdElement.php.

static getModelAttributeNames (  )  [static]

Get the attributeNames of attributes used in the derived element.

array of model attributeNames used.

Reimplemented from NameIdElement.

Definition at line 84 of file ImportMappingRuleDefaultModelNameIdElement.php.

Field Documentation

$idAttributeId = 'defaultModelId' [protected]

Model or form's attributeName for the model 'id'

Reimplemented from ModelElement.

Definition at line 44 of file ImportMappingRuleDefaultModelNameIdElement.php.

$nameAttributeName = 'defaultModelStringifiedName' [protected]

Model or form's attributeName for the model 'name'

Reimplemented from NameIdElement.

Definition at line 46 of file ImportMappingRuleDefaultModelNameIdElement.php.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri Nov 15 07:10:58 2019