pages/admin/AdminHandler.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00016 //$Id$
00017 
00018 
00019 import('handler.Handler');
00020 
00021 class AdminHandler extends Handler {
00025    function AdminHandler() {
00026       parent::Handler();
00027 
00028       $this->addCheck(new HandlerValidatorRoles($this, true, null, null, array(ROLE_ID_SITE_ADMIN)));
00029       $this->addCheck(new HandlerValidatorCustom($this, true, null, null, create_function(null, 'return Request::getRequestedConferencePath() == \'index\';')));
00030    }
00031 
00035    function index() {
00036       $this->validate();
00037       $this->setupTemplate();
00038 
00039       $templateMgr =& TemplateManager::getManager();
00040       $templateMgr->assign('helpTopicId', 'site.index');
00041       $templateMgr->display('admin/index.tpl');
00042    }
00043 
00048    function setupTemplate($subclass = false) {
00049       parent::setupTemplate();
00050       AppLocale::requireComponents(array(LOCALE_COMPONENT_PKP_ADMIN, LOCALE_COMPONENT_OCS_ADMIN, LOCALE_COMPONENT_OCS_MANAGER));
00051       $templateMgr =& TemplateManager::getManager();
00052       $templateMgr->assign('pageHierarchy',
00053          $subclass ? array(array(Request::url(null, null, 'user'), 'navigation.user'), array(Request::url(null, null, ROLE_PATH_SITE_ADMIN), 'admin.siteAdmin'))
00054             : array(array(Request::url(null, null, 'user'), 'navigation.user'))
00055       );
00056    }
00057 }
00058 
00059 ?>

Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7