class StateFlow_Event in State Machine 6
Same name and namespace in other branches
- 7.3 modules/state_flow_entity/plugins/state_flow_entity.inc \StateFlow_Event
- 7 modules/state_flow/plugins/state_flow.inc \StateFlow_Event
- 7.2 modules/state_flow/plugins/state_flow.inc \StateFlow_Event
Hierarchy
- class \StateMachine_Event
- class \StateFlow_Event
Expanded class hierarchy of StateFlow_Event
File
- modules/
state_flow/ plugins/ state_flow.inc, line 127
View source
class StateFlow_Event extends StateMachine_Event {
public function validate() {
if (parent::validate()) {
if (!empty($this->options['permission'])) {
return user_access($this->options['permission']);
}
return TRUE;
}
return FALSE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
StateFlow_Event:: |
public | function |
Validate the transition by processing the guard condition. Overrides StateMachine_Event:: |
|
StateMachine_Event:: |
protected | property | ||
StateMachine_Event:: |
protected | property | ||
StateMachine_Event:: |
public | function | Can this event be used to transition from the specified state? | |
StateMachine_Event:: |
public | function | Execute the event. Tests to make sure the current state is a valid origin state, checks the guard condition, | |
StateMachine_Event:: |
public | function | Allow the event to finish after the machine has changed state. | |
StateMachine_Event:: |
public | function |