/**
  *
  * @return Gpf_Ui_Page
  */
 public function createActionController()
 {
     if (array_key_exists($this->action->getActionCode(), $this->actionControllers)) {
         $class = $this->actionControllers[$this->action->getActionCode()];
         $reflectionClass = new ReflectionClass($class);
         $handler = $reflectionClass->newInstance();
         $handler->setAction($this->action);
         $handler->setUrlController($this->url);
         return $handler;
     }
     throw new Gpf_Exception('No page controller found');
 }
Example #2
0
 public function getCode()
 {
     return $this->action->getActionCode();
 }