Esempio n. 1
0
 /**
  * Process
  *
  * @return	boolean	false if the process is aborted
  * @access	public
  */
 function process()
 {
     $acl = $this->getAttribute('acl');
     if (!empty($acl)) {
         list($service, $action) = explode(',', $acl);
         if (!$this->_user->acl($service, $action)) {
             $this->breakCycle();
             $this->addOutputCode("403 Forbidden");
             return;
         }
     }
     $this->sessionEx = org_glizy_ObjectFactory::createObject('org.glizy.SessionEx', $this->getId());
     $this->action = __Request::get($this->actionName);
     $oldAction = $this->sessionEx->get($this->actionName);
     foreach ($this->childComponents as $c) {
         if (is_a($c, 'org_glizy_mvc_components_State')) {
             $c->deferredChildCreation();
         }
     }
     $this->callController();
     $this->canCallController = true;
     $this->action = strtolower($this->action);
     parent::process();
     $this->sessionEx->set($this->actionName, $oldAction);
 }
Esempio n. 2
0
 function render()
 {
     $this->loadSiteProperties();
     if (is_object($this->customTemplate)) {
         $this->customTemplate->render($this->_application, $this, $this->templateData);
     }
     return parent::render();
 }