DateTimeTriggerRules Class Reference

Inheritance diagram for DateTimeTriggerRules:
DateTriggerRules TriggerRules

Public Member Functions

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

Protected Member Functions

 resolveAttributeValueIsChanged (RedBeanModel $model, $attribute)

Detailed Description

Class to help evaluate dateTime triggers against model values.

Definition at line 40 of file DateTimeTriggerRules.php.


Member Function Documentation

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

Reimplemented from DateTriggerRules.

Definition at line 50 of file DateTimeTriggerRules.php.

resolveAttributeValueIsChanged ( RedBeanModel model,
attribute 
) [protected]

Resolves for special attributes. CreatedDateTime should resolve true if the model is new, otherwise false ModifiedDateTime should always resolve as true because it would always change

Parameters:
RedBeanModel $model
$attribute 
Returns:
bool

Reimplemented from DateTriggerRules.

Definition at line 70 of file DateTimeTriggerRules.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Apr 24 07:10:24 2017