ContactStateAttributeForm Class Reference

Inheritance diagram for ContactStateAttributeForm:
AttributeForm CollectionAttributeFormInterface ConfigurableMetadataModel

Public Member Functions

 __construct (Contact $model=null, $attributeName=null)
 rules ()
 attributeLabels ()
 getAttributeTypeName ()
 canUpdateAttributeProperty ($propertyName)
 validateContactStatesData ($attribute, $params)
 getCollectionCountData ()
 getModelPluralNameAndAttributeLabelsThatUseCollectionData ()

Static Public Member Functions

static getAttributeTypeDisplayName ()
static getAttributeTypeDisplayDescription ()
static getModelAttributeAdapterNameForSavingAttributeFormData ()

Data Fields


Detailed Description

Definition at line 37 of file ContactStateAttributeForm.php.

Member Function Documentation

canUpdateAttributeProperty ( propertyName  ) 

Override to handle startingStateOrder since the attributePropertyToDesignerFormAdapter does not specifically support this property.

Reimplemented from AttributeForm.

Definition at line 102 of file ContactStateAttributeForm.php.

static getModelAttributeAdapterNameForSavingAttributeFormData (  )  [static]
validateContactStatesData ( attribute,

Test if there are two picklist values with the same name. This is not allowed.

Definition at line 122 of file ContactStateAttributeForm.php.

getCollectionCountData (  ) 

Get how many records in the Contact and Lead models have each ContactState selected. During testing, it is possible a contact or lead exists with a contact state id that no longer exists. In that case, it is ignored from the count.

Implements CollectionAttributeFormInterface.

Definition at line 158 of file ContactStateAttributeForm.php.

getModelPluralNameAndAttributeLabelsThatUseCollectionData (  ) 

Even though contacts and leads use contact state, for now we are treating this only as one model with one attribute using this.

Implements CollectionAttributeFormInterface.

Definition at line 177 of file ContactStateAttributeForm.php.

Field Documentation


Used when changing the value of an existing data item. Coming in from a post, this array will have the old values that can be used to compare against and update the new values accordingly based on any changes.

Definition at line 49 of file ContactStateAttributeForm.php.

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