All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Data Fields
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 ()
 
- Public Member Functions inherited from AttributeForm
 __construct (RedBeanModel $model=null, $attributeName=null)
 
 __toString ()
 
 rules ()
 
 attributeLabels ()
 
 canUpdateAttributeProperty ($propertyName)
 
 getAttributeTypeName ()
 
 getModelAttributePartialRule ()
 
 validateAttributeNameDoesNotExists ()
 
 validateIsAttributeNameDatabaseReservedWord ()
 
 validateAttributeDoesNotContainReservedCharacters ()
 
 validateAttributeLabels ($attribute, $params)
 
 setModelClassName ($modelClassName)
 
 getModelClassName ()
 
 sanitizeFromPostAndSetAttributes ($values)
 

Static Public Member Functions

static getAttributeTypeDisplayName ()
 
static getAttributeTypeDisplayDescription ()
 
static getModelAttributeAdapterNameForSavingAttributeFormData ()
 
- Static Public Member Functions inherited from AttributeForm
static getAttributeTypeDisplayName ()
 
static getAttributeTypeDisplayDescription ()
 
static getModelAttributeAdapterNameForSavingAttributeFormData ()
 

Data Fields

 $contactStatesData
 
 $startingStateOrder
 
 $contactStatesLabels
 
 $contactStatesDataExistingValues
 
- Data Fields inherited from AttributeForm
 $attributeName
 
 $attributeLabels
 
 $defaultValue = null
 
 $isAudited = false
 
 $isRequired = false
 

Additional Inherited Members

- Protected Attributes inherited from AttributeForm
 $attributePropertyToDesignerFormAdapter
 
 $modelClassName
 

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.

Definition at line 102 of file ContactStateAttributeForm.php.

static getModelAttributeAdapterNameForSavingAttributeFormData ( )
static
validateContactStatesData (   $attribute,
  $params 
)

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

$contactStatesDataExistingValues

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:
Generated on Thu Apr 2 2020 07:10:53