pages/schedConfs/SchedConfsHandler.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00016 // $Id$
00017 
00018 
00019 import('handler.Handler');
00020 
00021 class SchedConfsHandler extends Handler {
00025    function SchedConfsHandler() {
00026       parent::Handler();
00027    }
00028 
00032    function current($args) {
00033       $this->addCheck(new HandlerValidatorConference($this));
00034       $this->validate();
00035       $conference =& Request::getConference();
00036       $this->setupTemplate();
00037 
00038       $templateMgr =& TemplateManager::getManager();
00039 
00040       $conferenceDao =& DAORegistry::getDAO('ConferenceDAO');
00041 
00042       $templateMgr->assign('helpTopicId', 'user.home');
00043 
00044       // Assign header and content for home page
00045       $templateMgr->assign('displayPageHeaderTitle', $conference->getPageHeaderTitle(true));
00046       $templateMgr->assign('displayPageHeaderLogo', $conference->getPageHeaderLogo(true));
00047       $templateMgr->assign('displayPageHeaderTitleAltText', $conference->getLocalizedSetting('homeHeaderTitleImageAltText'));
00048       $templateMgr->assign('displayPageHeaderLogoAltText', $conference->getLocalizedSetting('homeHeaderLogoImageAltText'));
00049       $templateMgr->assign('additionalHomeContent', $conference->getLocalizedSetting('additionalHomeContent'));
00050       $templateMgr->assign('homepageImage', $conference->getSetting('homepageImage'));
00051       $templateMgr->assign('homepageImageAltText', $conference->getLocalizedSetting('homepageImageAltText'));
00052       $templateMgr->assign('description', $conference->getSetting('description'));
00053       $templateMgr->assign('conferenceTitle', $conference->getConferenceTitle());
00054 
00055       $schedConfDao =& DAORegistry::getDAO('SchedConfDAO');
00056       $currentSchedConfs =& $schedConfDao->getCurrentSchedConfs($conference->getId());
00057 
00058       $templateMgr->assign_by_ref('schedConfs', $currentSchedConfs);
00059 
00060       $templateMgr->display('conference/current.tpl');
00061    }
00062 
00066    function archive($args) {
00067       $this->addCheck(new HandlerValidatorConference($this));
00068       $this->validate();
00069       $conference =& Request::getConference();
00070       $this->setupTemplate();
00071 
00072       $templateMgr =& TemplateManager::getManager();
00073 
00074       $conferenceDao =& DAORegistry::getDAO('ConferenceDAO');
00075 
00076       $templateMgr->assign('helpTopicId', 'user.home');
00077 
00078       // Assign header and content for home page
00079       $templateMgr->assign('displayPageHeaderTitle', $conference->getPageHeaderTitle(true));
00080       $templateMgr->assign('displayPageHeaderLogo', $conference->getPageHeaderLogo(true));
00081       $templateMgr->assign('displayPageHeaderTitleAltText', $conference->getLocalizedSetting('homeHeaderTitleImageAltText'));
00082       $templateMgr->assign('displayPageHeaderLogoAltText', $conference->getLocalizedSetting('homeHeaderLogoImageAltText'));
00083       $templateMgr->assign('additionalHomeContent', $conference->getLocalizedSetting('additionalHomeContent'));
00084       $templateMgr->assign('homepageImage', $conference->getSetting('homepageImage'));
00085       $templateMgr->assign('homepageImageAltText', $conference->getLocalizedSetting('homepageImageAltText'));
00086       $templateMgr->assign('description', $conference->getSetting('description'));
00087       $templateMgr->assign('conferenceTitle', $conference->getConferenceTitle());
00088 
00089       $schedConfDao =& DAORegistry::getDAO('SchedConfDAO');
00090       $pastSchedConfs =& $schedConfDao->getEnabledSchedConfs($conference->getId());
00091 
00092       $templateMgr->assign_by_ref('schedConfs', $pastSchedConfs);
00093 
00094       $templateMgr->display('conference/archive.tpl');
00095    }
00096 }
00097 
00098 ?>

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