You are here

public function StateMachine_State::on_enter in State Machine 7

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

Called when entering into this state.

File

inc/base.inc, line 221
base.inc

Class

StateMachine_State

Code

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