All Data Structures Functions Variables Pages
Public Member Functions | Protected Member Functions
CurrencyValueTriggerRules Class Reference
Inheritance diagram for CurrencyValueTriggerRules:
NumberTriggerRules TriggerRules

Public Member Functions

 evaluateBeforeSave (RedBeanModel $model, $attribute)
 
 evaluateTimeTriggerBeforeSave (RedBeanModel $model, $attribute, $changeRequiredToProcess=true)
 
- Public Member Functions inherited from NumberTriggerRules
 evaluateBeforeSave (RedBeanModel $model, $attribute)
 
- Public Member Functions inherited from TriggerRules
 evaluateBeforeSave (RedBeanModel $model, $attribute)
 
 __construct (TriggerForWorkflowForm $trigger)
 
 evaluateTimeTriggerBeforeSave (RedBeanModel $model, $attribute, $changeRequiredToProcess=true)
 

Protected Member Functions

 sanitize ($value)
 
 resolveCurrency (Currency $currency)
 
- Protected Member Functions inherited from TriggerRules
 sanitize ($value)
 

Additional Inherited Members

- Protected Attributes inherited from TriggerRules
 $trigger
 

Detailed Description

Class to help evaluate CurrencyValue triggers against model values.

Definition at line 40 of file CurrencyValueTriggerRules.php.

Member Function Documentation

evaluateBeforeSave ( RedBeanModel  $model,
  $attribute 
)
Parameters
RedBeanModel$model
string$attribute
Returns
bool
Exceptions
NotSupportedException

Definition at line 48 of file CurrencyValueTriggerRules.php.

evaluateTimeTriggerBeforeSave ( RedBeanModel  $model,
  $attribute,
  $changeRequiredToProcess = true 
)
See Also
parent::evaluateTimeTriggerBeforeSave for explanation of method
Parameters
RedBeanModel$model
string$attribute
boolean$changeRequiredToProcess- if a change in value is required to confirm the time trigger is true
Returns
bool

Definition at line 144 of file CurrencyValueTriggerRules.php.

sanitize (   $value)
protected
Parameters
$value
Returns
mixed

Definition at line 163 of file CurrencyValueTriggerRules.php.

resolveCurrency ( Currency  $currency)
protected
Parameters
Currency$currency
Returns
bool

Definition at line 172 of file CurrencyValueTriggerRules.php.


The documentation for this class was generated from the following file:
Generated on Sat May 30 2020 07:10:44