function run($time=NULL,$async=TRUE) {
        if (!isset($time))
            $time=time();
        $exec=array();
        foreach(array_keys($this->jobs) as $job)
            if ($this->isDue($job,$time))
                $exec[$job]=$this->execute($job,$async);
        return $exec;
    }
function run($time=NULL,$async=TRUE) {
        if (!isset($time))
            $time=time();
        $exec=array();
        foreach(array_keys($this->jobs) as $job)
            if ($this->isDue($job,$time))
                $exec[$job]=$this->execute($job,$async);
        return $exec;
    }
function run ( $ time = NULL , $ async = TRUE ) { if ( ! isset ( $ time ) ) $ time = time ( ) ; $ exec = array ( ) ; foreach ( array_keys ( $ this -> jobs ) as $ job ) if ( $ this -> isDue ( $ job , $ time ) ) $ exec [ $ job ] = $ this -> execute ( $ job , $ async ) ; return $ exec ; }
Run scheduler, i.e executes all due jobs at a given time
@param int $time
@param bool $async
@return array List of executed jobs
Run scheduler i . e executes all due jobs at a given time