public function run()
{
if (!defined('ENABLE_CRON')) {
return;
}
$cron = $this->getNextRun();
if ($cron) {
$cron->run();
$this->setNextRun($cron->getStep());
}
return;
}
function __destruct() { flush(); ob_end_flush(); $cron = new CronTab(); $cron->run(); }