DateTriggerRules Class Reference

Inheritance diagram for DateTriggerRules:
TriggerRules DateTimeTriggerRules

Public Member Functions

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

Protected Member Functions

 sanitize ($value, $adjustForTimezone=false)
 sanitizeTriggerValue ($value)
 resolveAttributeValueIsChanged (RedBeanModel $model, $attribute)
 sanitizeAndResolveThirdValue ()

Detailed Description

Class to help evaluate date triggers against model values.

Definition at line 40 of file DateTriggerRules.php.


Member Function Documentation

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

Reimplemented from TriggerRules.

Definition at line 48 of file DateTriggerRules.php.

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 TriggerRules.

Reimplemented in DateTimeTriggerRules.

Definition at line 152 of file DateTriggerRules.php.

sanitize ( value,
adjustForTimezone = false 
) [protected]
Parameters:
$value 
bool $adjustForTimezone
Returns:
int|mixed

Definition at line 169 of file DateTriggerRules.php.

sanitizeTriggerValue ( value  )  [protected]
Parameters:
$value 
Returns:
int

Definition at line 188 of file DateTriggerRules.php.

resolveAttributeValueIsChanged ( RedBeanModel model,
attribute 
) [protected]
Parameters:
RedBeanModel $model
$attribute 
Returns:
bool

Reimplemented in DateTimeTriggerRules.

Definition at line 198 of file DateTriggerRules.php.


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