function ConferenceSetupStep1Form() { parent::ConferenceSetupForm(1, array('title' => 'string', 'description' => 'string', 'contactName' => 'string', 'contactTitle' => 'string', 'contactAffiliation' => 'string', 'contactEmail' => 'string', 'contactPhone' => 'string', 'contactFax' => 'string', 'contactMailingAddress' => 'string', 'restrictPaperAccess' => 'bool', 'enableComments' => 'bool', 'commentsRequireRegistration' => 'bool', 'commentsAllowAnonymous' => 'bool', 'archiveAccessPolicy' => 'string', 'copyrightNotice' => 'string', 'copyrightNoticeAgree' => 'bool', 'postCreativeCommons' => 'bool', 'privacyStatement' => 'string', 'customAboutItems' => 'object')); // Validation checks for this form $this->addCheck(new FormValidator($this, 'contactName', 'required', 'manager.schedConfSetup.details.contactNameRequired')); $this->addCheck(new FormValidator($this, 'contactEmail', 'required', 'manager.schedConfSetup.details.contactEmailRequired')); }
/** * Display the form. */ function display() { $conference =& Request::getConference(); // Ensure upload file settings are reloaded when the form is displayed. $templateMgr =& TemplateManager::getManager(); $templateMgr->assign(array('homeHeaderTitleImage' => $conference->getSetting('homeHeaderTitleImage'), 'homeHeaderLogoImage' => $conference->getSetting('homeHeaderLogoImage'), 'pageHeaderTitleImage' => $conference->getSetting('pageHeaderTitleImage'), 'pageHeaderLogoImage' => $conference->getSetting('pageHeaderLogoImage'), 'conferenceFavicon' => $conference->getSetting('conferenceFavicon'))); parent::display(); }
/** * Display the form. */ function display() { $templateMgr =& TemplateManager::getManager(); $conference =& Request::getConference(); $schedConfDao =& DAORegistry::getDAO('SchedConfDAO'); $schedConfTitles =& $schedConfDao->getSchedConfTitles($conference->getId()); $templateMgr->assign_by_ref('schedConfTitles', $schedConfTitles); $templateMgr->assign(array('homepageImage' => $conference->getSetting('homepageImage'))); parent::display(); }
/** * Constructor. */ function ConferenceSetupStep5Form() { parent::ConferenceSetupForm(5, array('paperEventLog' => 'bool', 'paperEmailLog' => 'bool', 'conferenceEventLog' => 'bool')); }
/** * Constructor. */ function ConferenceSetupStep6Form() { parent::ConferenceSetupForm(6, array('searchDescription' => 'string', 'searchKeywords' => 'string', 'customHeaders' => 'string')); }
/** * Save the page of settings. */ function execute() { // Save the block plugin layout settings. $blockVars = array('blockSelectLeft', 'blockUnselected', 'blockSelectRight'); foreach ($blockVars as $varName) { ${$varName} = array_map('urldecode', split(' ', Request::getUserVar($varName))); } $plugins =& PluginRegistry::loadCategory('blocks'); foreach ($plugins as $key => $junk) { $plugin =& $plugins[$key]; // Ref hack $plugin->setEnabled(!in_array($plugin->getName(), $blockUnselected)); if (in_array($plugin->getName(), $blockSelectLeft)) { $plugin->setBlockContext(BLOCK_CONTEXT_LEFT_SIDEBAR); $plugin->setSeq(array_search($key, $blockSelectLeft)); } else { if (in_array($plugin->getName(), $blockSelectRight)) { $plugin->setBlockContext(BLOCK_CONTEXT_RIGHT_SIDEBAR); $plugin->setSeq(array_search($key, $blockSelectRight)); } } unset($plugin); } return parent::execute(); }