Helper\CronTab::run PHP Method

run() public method

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

Usage Example

Beispiel #1
0
 function __destruct()
 {
     flush();
     ob_end_flush();
     $cron = new CronTab();
     $cron->run();
 }