public function StateMachine::__construct in State Machine 7.3
Same name and namespace in other branches
- 6 inc/base.inc \StateMachine::__construct()
- 7 inc/base.inc \StateMachine::__construct()
- 7.2 inc/base.inc \StateMachine::__construct()
Create instance of StateMachine.
Parameters
object $object: The object to set.
1 method overrides StateMachine::__construct()
- StateFlowEntity::__construct in modules/
state_flow_entity/ plugins/ state_flow_entity.inc - Create instance of StateMachine.
File
- inc/
base.inc, line 23 - Defines the base classes of the state machine.
Class
- StateMachine
- The base class.
Code
public function __construct($object = NULL) {
$this->object = $object;
if (!$this
->ignore()) {
$this
->init();
$this
->set_current_state((string) $this
->load());
}
}