DefaultModelNameIdMappingRuleForm Class Reference

Inheritance diagram for DefaultModelNameIdMappingRuleForm:
DefaultModelAttributeMappingRuleForm ModelAttributeMappingRuleForm MappingRuleForm ConfigurableMetadataModel

Public Member Functions

 __construct ($modelClassName, $modelAttributeName)
 rules ()
 getId ()
 attributeLabels ()
 getDefaultModelName ()
 getModuleIdOfDefaultModel ()

Static Public Member Functions

static getAttributeName ()

Data Fields

 $defaultModelId
 $defaultModelStringifiedName

Protected Attributes

 $moduleIdOfDefaultModel

Detailed Description

Form for handling default values for relation type attributes.

Definition at line 40 of file DefaultModelNameIdMappingRuleForm.php.


Constructor & Destructor Documentation

__construct ( modelClassName,
modelAttributeName 
)
Parameters:
string $modelClassName
string $modelAttributeName

Reimplemented from ModelAttributeMappingRuleForm.

Definition at line 62 of file DefaultModelNameIdMappingRuleForm.php.


Member Function Documentation

rules (  ) 

Override to add an extra rule for the defaultModelStringifiedName. This will ensure if there is an error the message shows up properly in the user interface, since otherwise with the rule being on the defaultModelId, it would not show up because it is a hidden input.

See also:
DefaultModelAttributeMappingRuleForm::rules()

Reimplemented from DefaultModelAttributeMappingRuleForm.

Definition at line 78 of file DefaultModelNameIdMappingRuleForm.php.

getId (  ) 

This method is needed in the interface to work properly with the elements that use it.

Definition at line 105 of file DefaultModelNameIdMappingRuleForm.php.

static getAttributeName (  )  [static]

A mapping rule form has one attribute. This returns the name of that attribute.

Reimplemented from MappingRuleForm.

Definition at line 116 of file DefaultModelNameIdMappingRuleForm.php.

getDefaultModelName (  ) 

If needed get the stringified model name if the default model id is populated.

Definition at line 124 of file DefaultModelNameIdMappingRuleForm.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Oct 23 07:10:24 2017