classes/manager/form/setup/ConferenceSetupStep2Form.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00015 // $Id$
00016 
00017 import("manager.form.setup.ConferenceSetupForm");
00018 import('schedConf.SchedConf');
00019 
00020 class ConferenceSetupStep2Form extends ConferenceSetupForm {
00024    function ConferenceSetupStep2Form() {
00025       parent::ConferenceSetupForm(
00026          2,
00027          array(
00028             'additionalHomeContent' => 'string',
00029             'readerInformation' => 'string',
00030             'authorInformation' => 'string',
00031             'enableAnnouncements' => 'bool',
00032             'enableAnnouncementsHomepage' => 'bool',
00033             'numAnnouncementsHomepage' => 'int',
00034             'announcementsIntroduction' => 'string',
00035             'schedConfRedirect' => 'int',
00036             'homepageImageAltText' => 'string'
00037          )
00038       );
00039       $conference =& Request::getConference();
00040       $this->addCheck(new FormValidatorCustom($this, 'schedConfRedirect', 'optional', 'manager.setup.additionalContent.redirect.invalidSchedConf', create_function('$schedConfRedirect,$form,$schedConfDao,$conferenceId', 'return $schedConfDao->getSchedConf($schedConfRedirect, $conferenceId);'), array(&$this, DAORegistry::getDAO('SchedConfDAO'), $conference->getId())));
00041    }
00042 
00047    function getLocaleFieldNames() {
00048       return array('additionalHomeContent', 'readerInformation', 'authorInformation', 'announcementsIntroduction', 'homepageImageAltText');
00049    }
00050 
00054    function display() {
00055       $templateMgr =& TemplateManager::getManager();
00056       $conference =& Request::getConference();
00057 
00058       $schedConfDao =& DAORegistry::getDAO('SchedConfDAO');
00059       $schedConfTitles =& $schedConfDao->getSchedConfTitles($conference->getId());
00060       $templateMgr->assign_by_ref('schedConfTitles', $schedConfTitles);
00061 
00062       $templateMgr->assign(array(
00063          'homepageImage' => $conference->getSetting('homepageImage')
00064       ));
00065 
00066       parent::display();      
00067    }
00068 }
00069 
00070 ?>

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