/** * Sets/writes the current crawler-status * * @param PHPCrawlerStatus $crawler_status The status to set */ public function setCrawlerStatus(PHPCrawlerStatus $crawler_status) { $this->crawlerStatus = $crawler_status; // Write crawler-status back to file if ($this->write_status_to_file == true) { PHPCrawlerUtils::serializeToFile($this->working_directory . "crawlerstatus.tmp", $crawler_status); } }
/** * Sets/writes the current crawler-status * * @param PHPCrawlerStatus $crawler_status The status to set */ public function setCrawlerStatus(PHPCrawlerStatus $crawler_status) { $this->crawlerStatus = $crawler_status; // Write crawler-status back to file if crawler is multiprocessed if ($this->multiprocess_mode == PHPCrawlerMultiProcessModes::MPMODE_CHILDS_EXECUTES_USERCODE) { PHPCrawlerUtils::serializeToFile($this->working_directory . "crawlerstatus.tmp", $crawler_status); } }