public function setActionIdentity(__ActionIdentity $action_identity) { //if the controller code is dynamic, meaning that it's a variable: if ($this->_controller_code_variable != null) { $this->setControllerCode($action_identity->getControllerCode()); } //if the action code is dynamic, meaning that it's a variable: if ($this->_action_code_variable != null) { $this->setActionCode($action_identity->getActionCode()); } }
/** * Set the parameters for controller + action by specifying an action identity (which contains both values) * * @param __ActionIdentity $action_identity */ public function setActionIdentity(__ActionIdentity $action_identity) { $this->addParameter(__ApplicationContext::getInstance()->getPropertyContent('REQUEST_CONTROLLER_CODE'), $action_identity->getControllerCode()); $this->addParameter(__ApplicationContext::getInstance()->getPropertyContent('REQUEST_ACTION_CODE'), $action_identity->getActionCode()); }