/** * @see Page::readData() */ public function readData() { parent::readData(); WCF::getCache()->addResource('admin_tools_functions-' . PACKAGE_ID, WCF_DIR . 'cache/cache.admin_tools_functions-' . PACKAGE_ID . '.php', WCF_DIR . 'lib/system/cache/CacheBuilderAdminToolsFunction.class.php'); $this->functions = WCF::getCache()->get('admin_tools_functions-' . PACKAGE_ID); foreach ($this->functions as $key => $function) { if (!$function['executeAsCronjob']) { unset($this->functions[$key]); } } }
/** * @see Page::readData() */ public function readData() { parent::readData(); if (!count($_POST)) { $this->classPath = $this->cronjob->classPath; $this->description = $this->cronjob->description; $this->execMultiple = $this->cronjob->execMultiple; $this->startMinute = $this->cronjob->startMinute; $this->startHour = $this->cronjob->startHour; $this->startDom = $this->cronjob->startDom; $this->startMonth = $this->cronjob->startMonth; $this->startDow = $this->cronjob->startDow; } }