コード例 #1
0
 /**
  * @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;
 }
コード例 #2
0
 /**
  * @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));
 }
コード例 #3
0
 /**
  * @see Cronjob::execute()
  */
 public function execute($data)
 {
     SpiderEditor::synchronize();
 }
コード例 #4
0
 /**
  * Deletes all items	 
  */
 public function deleteAll()
 {
     $spiders = SpiderEditor::getMarkedSpiders();
     SpiderEditor::deleteAll($spiders);
     $this->unmarkAll();
     if (!empty($this->url)) {
         HeaderUtil::redirect($this->url);
     }
 }