function saturationCheckerCron($websiteId) { include_once SP_CTRLPATH . "/saturationchecker.ctrl.php"; $this->debugMsg("Starting Search engine saturation Checker cron for website: {$this->websiteInfo['name']}....<br>\n"); $saturationCtrler = new SaturationCheckerController(); $websiteInfo = $this->websiteInfo; if (SP_MULTIPLE_CRON_EXEC && $saturationCtrler->isReportsExists($websiteInfo['id'], $this->timeStamp)) { return; } $saturationCtrler->url = $websiteUrl = addHttpToUrl($websiteInfo['url']); foreach ($saturationCtrler->colList as $col => $dbCol) { $websiteInfo[$col] = $saturationCtrler->__getSaturationRank($col); } $saturationCtrler->saveRankResults($websiteInfo, true); echo "Saved Search Engine Saturation results of <b>{$websiteUrl}</b>.....</br>\n"; }