StateMachineTrait
trait StateMachineTrait
Properties
protected bool | $_state_machine_field_transitions | Array of all fields and their values which have been changed during the last save() call |
|
protected bool | $_state_machine_active | Has State Machine beein initialized yet (registered event listeners) |
|
protected array | $_state_machine_registered_transitions | List of registered transitions which will be checked on field changes |
Methods
afterSave Event Handler Process State Machine after Save
beforeSave Event Handler Identify all properties which will be modified with this call
Register Transition Callback which will be called when field values change according to defined transition
Details
at line 44
_state_machine_after_save()
afterSave Event Handler Process State Machine after Save
at line 31
_state_machine_before_save()
beforeSave Event Handler Identify all properties which will be modified with this call
at line 90
protected
after_transition(string $property_id, mixed $from_value, mixed $to_value, $callback)
Register Transition Callback which will be called when field values change according to defined transition