/** * Initializes the state and flags. * * @param string $state * @param int $flags * * @access public * @return boolean status flag * @throws StatusException */ public function Config($state, $flags = 0) { // if there is an ICS state, it will remain untouched in the ReplyBackState object $this->state = ReplyBackState::FromState($state); $this->init(); $config = false; if ($this->isReplyBackExporter() || !empty($this->moveSrcState)) { $config = $this->current->Config($this->state->GetReplyBackState(), $flags); } else { $config = $this->current->Config($this->state->GetICSState(), $flags); } $this->current->SetMoveStates($this->moveSrcState, $this->moveDstState); }