CurrencyValueTriggerRules Class Reference

Inheritance diagram for CurrencyValueTriggerRules:
NumberTriggerRules TriggerRules

Public Member Functions

 evaluateBeforeSave (RedBeanModel $model, $attribute)
 evaluateTimeTriggerBeforeSave (RedBeanModel $model, $attribute, $changeRequiredToProcess=true)

Protected Member Functions

 sanitize ($value)
 resolveCurrency (Currency $currency)

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 

Reimplemented from NumberTriggerRules.

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

Reimplemented from TriggerRules.

Definition at line 144 of file CurrencyValueTriggerRules.php.

sanitize ( value  )  [protected]
Parameters:
$value 
Returns:
mixed

Reimplemented from TriggerRules.

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:
 All Data Structures Functions Variables
Generated on Mon Mar 27 07:10:23 2017