public function StateMachine::__construct in State Machine 7.2
Same name and namespace in other branches
- 6 inc/base.inc \StateMachine::__construct()
- 7.3 inc/base.inc \StateMachine::__construct()
- 7 inc/base.inc \StateMachine::__construct()
File
Class
- StateMachine
- @file base.inc
Code
public function __construct($object = NULL) {
$this->object = $object;
if (!$this
->ignore()) {
$this
->init();
$this
->set_current_state((string) $this
->load());
}
}