Example #1
0
 public function __construct()
 {
     $this->time = time() - 1;
     Config::GetMyConfig();
     try {
         if (FALSE === file_exists($this->crontab)) {
             $this->writeTemplate($this->crontab);
         }
         $this->loadTable($this->crontab);
         #            Timers::Add('Cron', new Timer(1, -1, -1, array($this, 'tick')));
         #            console('Cron started ('.sizeof($this->jobs).' jobs)');
     } catch (Exception $e) {
         trigger_error($e->getMessage(), E_USER_WARNING);
     }
 }