Ejemplo n.º 1
0
 /**
  * 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'))));
 }
Ejemplo n.º 2
0
 /**
  * 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);
 }