public function StateMachine_Event::get_option in State Machine 7.3
Same name and namespace in other branches
- 7.2 inc/base.inc \StateMachine_Event::get_option()
Return a specific key value from the $options array.
Parameters
string $key: The options key.
Return value
mixed The value of the option or FALSE if the option wasn't found.
1 call to StateMachine_Event::get_option()
- StateMachine_Event::get_target_state in inc/
base.inc - Returns the target state of this event.
File
- inc/
base.inc, line 386 - Defines the base classes of the state machine.
Class
- StateMachine_Event
- Base class for events.
Code
public function get_option($key) {
return array_key_exists($key, $this->options) ? $this->options[$key] : FALSE;
}