You are here

public function StateMachine_State::on_exit in State Machine 7.3

Same name and namespace in other branches
  1. 6 inc/base.inc \StateMachine_State::on_exit()
  2. 7 inc/base.inc \StateMachine_State::on_exit()
  3. 7.2 inc/base.inc \StateMachine_State::on_exit()

Called when exiting out of this state.

File

inc/base.inc, line 311
Defines the base classes of the state machine.

Class

StateMachine_State
Base class for states.

Code

public function on_exit() {
  $args = func_get_args();
  if (!empty($this->options['on_exit'])) {
    call_user_func_array($this->options['on_exit'], $args);
  }
}