コード例 #1
0
 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());
     }
 }
コード例 #2
0
 /**
  * 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());
 }