CurrencyValueWorkflowActionAttributeForm Class Reference

Inheritance diagram for CurrencyValueWorkflowActionAttributeForm:
WorkflowActionAttributeForm ConfigurableMetadataModel

Public Member Functions

 getValueElementType ()
 rules ()
 validateCurrencyId ()
 resolveValueAndSetToModel (WorkflowActionProcessingModelAdapter $adapter, $attribute)

Data Fields

const CURRENCY_ID_TYPE_STATIC = 'Static'
 $currencyId
 $currencyIdType = self::CURRENCY_ID_TYPE_STATIC

Protected Member Functions

 makeTypeValuesAndLabels ($isCreatingNewModel, $isRequired)

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

Reimplemented from WorkflowActionAttributeForm.

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 

Reimplemented from WorkflowActionAttributeForm.

Definition at line 96 of file CurrencyValueWorkflowActionAttributeForm.php.

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

Reimplemented from WorkflowActionAttributeForm.

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:
 All Data Structures Functions Variables
Generated on Wed Mar 29 07:10:25 2017