コード例 #1
0
ファイル: loading.php プロジェクト: naujasdizainas/forkcms
 /**
  * Parse this page
  */
 protected function parse()
 {
     parent::parse();
     $page = $this->pageId != '' ? BackendAnalyticsModel::getPageForId($this->pageId) : null;
     // update date_viewed for this page
     BackendAnalyticsModel::updatePageDateViewed($this->pageId);
     // parse redirect link
     $this->tpl->assign('redirectGet', isset($page) ? 'page=' . $page : '');
     $this->tpl->assign('page', $this->redirectAction);
     $this->tpl->assign('identifier', ($this->pageId != '' ? $this->pageId . '_' : '') . $this->identifier);
     // check if this action is allowed
     if (BackendAuthentication::isAllowedAction($this->redirectAction, $this->getModule())) {
         $this->tpl->assign('redirect', BackendModel::createURLForAction($this->redirectAction));
     }
     // check if this action is allowed
     if (BackendAuthentication::isAllowedAction('settings', $this->getModule())) {
         $this->tpl->assign('settingsUrl', BackendModel::createURLForAction('settings'));
     }
 }
コード例 #2
0
ファイル: loading.php プロジェクト: netconstructor/forkcms
 /**
  * Parse this page
  *
  * @return	void
  */
 protected function parse()
 {
     // get page
     $page = $this->pageId != '' ? BackendAnalyticsModel::getPageForId($this->pageId) : null;
     // update date_viewed for this page
     BackendAnalyticsModel::updatePageDateViewed($this->pageId);
     // parse redirect link
     $this->tpl->assign('redirect', BackendModel::createURLForAction($this->redirectAction));
     $this->tpl->assign('redirectGet', isset($page) ? 'page=' . $page : '');
     $this->tpl->assign('settingsUrl', BackendModel::createURLForAction('settings'));
     $this->tpl->assign('page', $this->redirectAction);
     $this->tpl->assign('identifier', ($this->pageId != '' ? $this->pageId . '_' : '') . $this->identifier);
 }