/** * @see Form::validate() */ public function validate() { try { parent::validate(); } catch (UserInputException $e) { $errorField = $e->getField(); $errorType = $e->getType(); if ($errorField != 'classPath') { throw new UserInputException($errorField, $errorType); } } if ($this->wcfCronjob) { foreach ($this->activeFunctions as &$functionID) { if (!empty($this->functions[$functionID]['packageDir'])) { unset($functionID); } } } if (!count($this->activeFunctions)) { throw new UserInputException(); } }
/** * @see Page::assignVariables() */ public function assignVariables() { parent::assignVariables(); WCF::getTPL()->assign(array('cronjobID' => $this->cronjobID, 'action' => 'edit')); }