All Data Structures Functions Variables Pages
Public Member Functions | Data Fields | Protected Member Functions
CurrencyValueWorkflowActionAttributeForm Class Reference
Inheritance diagram for CurrencyValueWorkflowActionAttributeForm:
WorkflowActionAttributeForm ConfigurableMetadataModel

Public Member Functions

 getValueElementType ()
 
 rules ()
 
 validateCurrencyId ()
 
 resolveValueAndSetToModel (WorkflowActionProcessingModelAdapter $adapter, $attribute)
 
- Public Member Functions inherited from WorkflowActionAttributeForm
 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)
 

Data Fields

const CURRENCY_ID_TYPE_STATIC = 'Static'
 
 $currencyId
 
 $currencyIdType = self::CURRENCY_ID_TYPE_STATIC
 
- Data Fields inherited from WorkflowActionAttributeForm
const TYPE_STATIC = 'Static'
 
const TYPE_STATIC_NULL = 'StaticNull'
 
 $type
 
 $value
 
 $shouldSetValue
 

Protected Member Functions

 makeTypeValuesAndLabels ($isCreatingNewModel, $isRequired)
 
- Protected Member Functions inherited from WorkflowActionAttributeForm
 makeTypeValuesAndLabels ($isCreatingNewModel, $isRequired)
 
 resolveValueForMergeTags ($value, WorkflowActionProcessingModelAdapter $adapter)
 

Additional Inherited Members

- Static Public Member Functions inherited from WorkflowActionAttributeForm
static getFormType ()
 
static resolveValueBeforeSave ()
 
- Protected Attributes inherited from WorkflowActionAttributeForm
 $stringifiedModelForValue
 
 $modelClassName
 
 $modelAttributeName
 
 $displayLabel
 
 $shouldResolveValueForMergeTags = false
 

Detailed Description

Form to work with currencyValue attributes

Definition at line 40 of file CurrencyValueWorkflowActionAttributeForm.php.

Member Function Documentation

rules ( )

Override to make sure value is a float and adding in additional attribute rules

Definition at line 66 of file CurrencyValueWorkflowActionAttributeForm.php.

validateCurrencyId ( )

Value is required based on the type. Override in children as needed to add more scenarios.

Returns
bool

Definition at line 80 of file CurrencyValueWorkflowActionAttributeForm.php.

resolveValueAndSetToModel ( WorkflowActionProcessingModelAdapter  $adapter,
  $attribute 
)

Utilized to create or update model attribute values after a workflow's triggers are fired as true.

Parameters
WorkflowActionProcessingModelAdapter$adapter
$attribute
Exceptions
NotSupportedException

Definition at line 96 of file CurrencyValueWorkflowActionAttributeForm.php.

makeTypeValuesAndLabels (   $isCreatingNewModel,
  $isRequired 
)
protected
Parameters
bool$isCreatingNewModel
bool$isRequired
Returns
array

Definition at line 115 of file CurrencyValueWorkflowActionAttributeForm.php.

Field Documentation

const CURRENCY_ID_TYPE_STATIC = 'Static'

Defines currency id for the value as being a specific currency id. In the future additional options will be addded to use the user's currency or maybe an existing model's currency

Definition at line 51 of file CurrencyValueWorkflowActionAttributeForm.php.


The documentation for this class was generated from the following file:
Generated on Sat Apr 4 2020 07:10:53