pages/information/InformationHandler.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00015 //$Id$
00016 
00017 
00018 import('handler.Handler');
00019 
00020 class InformationHandler extends Handler {
00024    function InformationHandler() {
00025       parent::Handler();
00026    }
00027 
00031    function index($args) {
00032       $this->validate();
00033       $this->setupTemplate();
00034       
00035       $conference =& Request::getConference();
00036       $schedConf =& Request::getSchedConf();
00037       $schedConfContent = null;
00038 
00039       if ($conference == null) {
00040          Request::redirect('index');
00041          return;
00042       }
00043 
00044       switch(isset($args[0])?$args[0]:null) {
00045          case 'readers':
00046             $conferenceContent = $conference->getLocalizedSetting('readerInformation');
00047             $pageTitle = 'navigation.infoForReaders.long';
00048             $pageCrumbTitle = 'navigation.infoForReaders';
00049             break;
00050          case 'authors':
00051             $conferenceContent = $conference->getLocalizedSetting('authorInformation');
00052             $pageTitle = 'navigation.infoForAuthors.long';
00053             $pageCrumbTitle = 'navigation.infoForAuthors';
00054             break;
00055          default:
00056             Request::redirect($conference->getPath());
00057             return;
00058       }
00059 
00060       $templateMgr =& TemplateManager::getManager();
00061 
00062       if($schedConf) {
00063          $templateMgr->assign('schedConfTitle', $schedConf->getFullTitle());
00064       }
00065       $templateMgr->assign('conferenceTitle', $conference->getConferenceTitle());
00066 
00067       $templateMgr->assign('pageCrumbTitle', $pageCrumbTitle);
00068       $templateMgr->assign('pageTitle', $pageTitle);
00069       $templateMgr->assign('conferenceContent', $conferenceContent);
00070       $templateMgr->assign('schedConfContent', $schedConfContent);
00071       $templateMgr->display('information/information.tpl');
00072    }
00073 
00074    function readers() {
00075       $this->index(array('readers'));
00076    }
00077 
00078    function authors() {
00079       $this->index(array('authors'));
00080    }
00081 
00085    function setupTemplate() {
00086       parent::setupTemplate();
00087       $templateMgr =& TemplateManager::getManager();
00088       $templateMgr->setCacheability(CACHEABILITY_PUBLIC);
00089    }
00090 }
00091 
00092 ?>

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