Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

WorkflowActionAttributeForm Class Reference

Inheritance diagram for WorkflowActionAttributeForm:
ConfigurableMetadataModel CheckBoxWorkflowActionAttributeForm ContactStateWorkflowActionAttributeForm CurrencyValueWorkflowActionAttributeForm CustomFieldWorkflowActionAttributeForm DecimalWorkflowActionAttributeForm DurationEnabledWorkflowActionAttributeForm EmailWorkflowActionAttributeForm ExplicitReadWriteModelPermissionsWorkflowActionAttributeForm IntegerWorkflowActionAttributeForm MarketingListWorkflowActionAttributeForm ProductTemplatePriceFrequencyDropDownWorkflowActionAttributeForm ProductTemplateStatusDropDownWorkflowActionAttributeForm ProductTemplateTypeDropDownWorkflowActionAttributeForm ProjectStatusDropDownWorkflowActionAttributeForm StatusDropDownWorkflowActionAttributeForm TaskStatusDropDownWorkflowActionAttributeForm TextAreaWorkflowActionAttributeForm TextWorkflowActionAttributeForm UrlWorkflowActionAttributeForm UserWorkflowActionAttributeForm

Public Member Functions

 getValueElementType ()
 __construct ($modelClassName, $modelAttributeName)
 getAlternateValue ()
 getDisplayLabel ()
 getStringifiedModelForValue ()
 setDisplayLabel ($displayLabel)
 getModelClassName ()
 getModelAttributeName ()
 rules ()
 attributeLabels ()
 validateValue ()
 getTypeValuesAndLabels ($isCreatingNewModel, $isRequired)
 resolveValueAndSetToModel (WorkflowActionProcessingModelAdapter $adapter, $attribute)
 shouldSetNullAlternativeValue ()
 resolveNullAlternativeValueAndSetToModel (WorkflowActionProcessingModelAdapter $adapter, $attribute)

Static Public Member Functions

static getFormType ()
static resolveValueBeforeSave ()

Data Fields

const TYPE_STATIC = 'Static'
const TYPE_STATIC_NULL = 'StaticNull'
 $type
 $value
 $shouldSetValue

Protected Member Functions

 makeTypeValuesAndLabels ($isCreatingNewModel, $isRequired)
 resolveValueForMergeTags ($value, WorkflowActionProcessingModelAdapter $adapter)

Protected Attributes

 $stringifiedModelForValue
 $modelClassName
 $modelAttributeName
 $displayLabel
 $shouldResolveValueForMergeTags = false

Detailed Description

Base class for working with action attributes.

Definition at line 40 of file WorkflowActionAttributeForm.php.


Constructor & Destructor Documentation

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

Definition at line 125 of file WorkflowActionAttributeForm.php.


Member Function Documentation

static getFormType (  )  [static]
Returns:
string - If the class name is BooleanWorkflowActionAttributeForm, then 'Boolean' will be returned.

Definition at line 105 of file WorkflowActionAttributeForm.php.

static resolveValueBeforeSave (  )  [static]

Return true if the actionAttribute should resolve value before save. If false, it will resolve value afterSave

Returns:
bool

Reimplemented in ExplicitReadWriteModelPermissionsWorkflowActionAttributeForm.

Definition at line 116 of file WorkflowActionAttributeForm.php.

getAlternateValue (  ) 

Method needed so the validation routines can properly interact with the alternateValue and properly set the correct errors.

Returns:
mixed

Definition at line 138 of file WorkflowActionAttributeForm.php.

getDisplayLabel (  ) 
Returns:
string

Definition at line 146 of file WorkflowActionAttributeForm.php.

getStringifiedModelForValue (  ) 
Returns:
string

Reimplemented in MarketingListWorkflowActionAttributeForm, and UserWorkflowActionAttributeForm.

Definition at line 154 of file WorkflowActionAttributeForm.php.

setDisplayLabel ( displayLabel  ) 
Parameters:
$displayLabel 

Definition at line 162 of file WorkflowActionAttributeForm.php.

getModelClassName (  ) 
Returns:
string

Definition at line 171 of file WorkflowActionAttributeForm.php.

getModelAttributeName (  ) 
Returns:
string

Definition at line 179 of file WorkflowActionAttributeForm.php.

attributeLabels (  ) 
Returns:
array

Reimplemented in DurationEnabledWorkflowActionAttributeForm.

Definition at line 207 of file WorkflowActionAttributeForm.php.

validateValue (  ) 
getTypeValuesAndLabels ( isCreatingNewModel,
isRequired 
)
Parameters:
bool $isCreatingNewModel
bool $isRequired Is the attribute required or not. Some types are not available if the attribute is required.
Returns:
array

Definition at line 232 of file WorkflowActionAttributeForm.php.

resolveNullAlternativeValueAndSetToModel ( WorkflowActionProcessingModelAdapter adapter,
attribute 
)

In the event that the value is not being set, sometimes an attribute still requires an alternative to null. An example is boolean where the default value should be 0 not NULL. Same is true with dateTime, and date where the default values should be 0000-00-00 00:00:00 and 0000-00-00 respectively.

Parameters:
WorkflowActionProcessingModelAdapter $adapter
$attribute 
Exceptions:
NotSupportedException 

Reimplemented in CheckBoxWorkflowActionAttributeForm, DateTimeWorkflowActionAttributeForm, and DateWorkflowActionAttributeForm.

Definition at line 280 of file WorkflowActionAttributeForm.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Jun 24 07:11:12 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8