/** * @see Action::execute(); */ public function execute() { parent::execute(); SpiderEditor::synchronize(); HeaderUtil::redirect('index.php?page=AdminToolsSpiderList&packageID=' . PACKAGE_ID . SID_ARG_2ND_NOT_ENCODED); exit; }
/** * @see Form::save() */ public function save() { parent::save(); SpiderEditor::create($this->spiderIdentifier, $this->spiderName, $this->spiderURL); $this->spiderName = $this->spiderIdentifier = $this->spiderURL = ''; $this->saved(); WCF::getTPL()->assign(array('success' => true)); }
/** * @see Cronjob::execute() */ public function execute($data) { SpiderEditor::synchronize(); }
/** * Deletes all items */ public function deleteAll() { $spiders = SpiderEditor::getMarkedSpiders(); SpiderEditor::deleteAll($spiders); $this->unmarkAll(); if (!empty($this->url)) { HeaderUtil::redirect($this->url); } }