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

Public Member Functions

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

Protected Member Functions

 sanitize ($value, $adjustForTimezone=false)
 
 sanitizeTriggerValue ($value)
 
 resolveAttributeValueIsChanged (RedBeanModel $model, $attribute)
 
 sanitizeAndResolveThirdValue ()
 
- Protected Member Functions inherited from TriggerRules
 sanitize ($value)
 

Additional Inherited Members

- Protected Attributes inherited from TriggerRules
 $trigger
 

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

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

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

Definition at line 198 of file DateTriggerRules.php.


The documentation for this class was generated from the following file:
Generated on Sun Feb 16 2020 07:10:36