/** * Constructor. * @param $contextId omit for a new schedConf */ function SchedConfSettingsForm($contextId = null) { parent::ContextSiteSettingsForm('manager/schedConfSettings.tpl', $contextId); // Validation checks for this form $this->addCheck(new FormValidatorLocale($this, 'name', 'required', 'admin.schedconfs.form.titleRequired')); $this->addCheck(new FormValidator($this, 'path', 'required', 'admin.schedconfs.form.pathRequired')); $this->addCheck(new FormValidatorAlphaNum($this, 'path', 'required', 'admin.schedconfs.form.pathAlphaNumeric')); $this->addCheck(new FormValidatorCustom($this, 'path', 'required', 'admin.schedconfs.form.pathExists', create_function('$path,$form,$schedConfDao', 'return !$schedConfDao->existsByPath($path) || ($form->getData(\'oldPath\') != null && $form->getData(\'oldPath\') == $path);'), array(&$this, DAORegistry::getDAO('SchedConfDAO')))); }
/** * Constructor. * @param $contextId omit for a new journal */ function JournalSiteSettingsForm($contextId = null) { parent::ContextSiteSettingsForm($contextId); }
/** * Constructor. * @param $contextId omit for a new press */ function PressSiteSettingsForm($contextId = null) { parent::ContextSiteSettingsForm($contextId); }