Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Data Fields | Protected Attributes
DefaultModelNameIdMappingRuleForm Class Reference
Inheritance diagram for DefaultModelNameIdMappingRuleForm:
DefaultModelAttributeMappingRuleForm ModelAttributeMappingRuleForm MappingRuleForm ConfigurableMetadataModel

Public Member Functions

 __construct ($modelClassName, $modelAttributeName)
 
 rules ()
 
 getId ()
 
 attributeLabels ()
 
 getDefaultModelName ()
 
 getModuleIdOfDefaultModel ()
 
- Public Member Functions inherited from DefaultModelAttributeMappingRuleForm
 rules ()
 
- Public Member Functions inherited from ModelAttributeMappingRuleForm
 __construct ($modelClassName, $modelAttributeName)
 
- Public Member Functions inherited from MappingRuleForm
 rules ()
 
 attributeLabels ()
 

Static Public Member Functions

static getAttributeName ()
 
- Static Public Member Functions inherited from MappingRuleForm
static getType ()
 
static getAttributeName ()
 

Data Fields

 $defaultModelId
 
 $defaultModelStringifiedName
 

Protected Attributes

 $moduleIdOfDefaultModel
 
- Protected Attributes inherited from ModelAttributeMappingRuleForm
 $modelClassName
 
 $modelAttributeName
 

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

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()

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.

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:
Generated on Fri Nov 27 2020 07:10:39
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.