Exemple #1
0
 /**
  * Updates the request objext.
  *
  * @param $result
  */
 public function updateRequest($result)
 {
     if (array_key_exists('admin', $result) && strlen($result['admin']) > 0) {
         $this->request->setIsAdmin(true);
     }
     if (array_key_exists('module', $result)) {
         $this->request->setModuleName($result['module']);
     }
     if (array_key_exists('controller', $result)) {
         $this->request->setControllerName($result['controller']);
     }
     if (array_key_exists('action', $result)) {
         $this->request->setActionName($result['action']);
     }
     if (array_key_exists('params', $result)) {
         $params = $this->convertParamStringIntoArray($result['params']);
         foreach ($params as $key => $value) {
             $this->request->setParam($key, $value);
         }
     }
 }