You are here

class StateFlow_Event in State Machine 7

Same name and namespace in other branches
  1. 6 modules/state_flow/plugins/state_flow.inc \StateFlow_Event
  2. 7.3 modules/state_flow_entity/plugins/state_flow_entity.inc \StateFlow_Event
  3. 7.2 modules/state_flow/plugins/state_flow.inc \StateFlow_Event

Hierarchy

Expanded class hierarchy of StateFlow_Event

File

modules/state_flow/plugins/state_flow.inc, line 341

View source
class StateFlow_Event extends StateMachine_Event {
  public function get_machine() {
    return $this->machine;
  }
  public function validate() {
    if (parent::validate()) {
      if (!empty($this->options['permission'])) {
        return user_access($this->options['permission']);
      }
      return TRUE;
    }
    return FALSE;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
StateFlow_Event::get_machine public function
StateFlow_Event::validate public function Validate that the given event can take place. Overrides StateMachine_Event::validate
StateMachine_Event::$machine protected property
StateMachine_Event::$options protected property
StateMachine_Event::can_transition_from public function Can this event be used to transition from the specified state?
StateMachine_Event::execute public function Execute the event.
StateMachine_Event::finish public function Allow the event to finish after the machine has changed state.
StateMachine_Event::__construct public function