Public Member Functions | |
evaluateBeforeSave (RedBeanModel $model, $attribute) | |
__construct (TriggerForWorkflowForm $trigger) | |
evaluateTimeTriggerBeforeSave (RedBeanModel $model, $attribute, $changeRequiredToProcess=true) | |
Protected Member Functions | |
sanitize ($value) | |
Protected Attributes | |
$trigger | |
Class to help the workflow engine understand how to evaluate various triggers
Definition at line 40 of file TriggerRules.php.
__construct | ( | TriggerForWorkflowForm | $trigger | ) |
TriggerForWorkflowForm | $trigger |
Definition at line 52 of file TriggerRules.php.
evaluateTimeTriggerBeforeSave | ( | RedBeanModel | $model, |
$attribute, | |||
$changeRequiredToProcess = true |
|||
) |
For a time trigger, the value must first 'change'. If the operator is TYPE_DOES_NOT_CHANGE, then we can assume true since any 'change' pushes out the time expiration. If the value does 'change', then the operator can be evaluated normally.
RedBeanModel | $model | |
$attribute | ||
$changeRequiredToProcess | - if a change in value is required to confirm the time trigger is true |
Definition at line 66 of file TriggerRules.php.
|
protected |
Override as needed to add specific sanitization routines. Text for example, has to use strtolower
$value |
Definition at line 86 of file TriggerRules.php.