public function getJobsFor(\DateTime $dateTime, $lock = true)
    {
        $dateTime->setTime($dateTime->format("H"), $dateTime->format("i"), 0);
        $serializedJobs = $this->backend->getJobsFor($dateTime, $lock);
        $jobs = array();
        foreach ($serializedJobs as $job) {
            $jobs[] = $this->deserializeJob($job);
        }
        return $jobs;
    }
public function getJobsFor(\DateTime $dateTime, $lock = true)
    {
        $dateTime->setTime($dateTime->format("H"), $dateTime->format("i"), 0);
        $serializedJobs = $this->backend->getJobsFor($dateTime, $lock);
        $jobs = array();
        foreach ($serializedJobs as $job) {
            $jobs[] = $this->deserializeJob($job);
        }
        return $jobs;
    }
public function getJobsFor ( \ DateTime $ dateTime , $ lock = true ) { $ dateTime -> setTime ( $ dateTime -> format ( "H" ) , $ dateTime -> format ( "i" ) , 0 ) ; $ serializedJobs = $ this -> backend -> getJobsFor ( $ dateTime , $ lock ) ; $ jobs = array ( ) ; foreach ( $ serializedJobs as $ job ) { $ jobs [ ] = $ this -> deserializeJob ( $ job ) ; } return $ jobs ; }
Get jobs scheduled for the given DateTime.
@param \DateTime $dateTime
@param boolean $lock Lock the jobs found for a minute (to prevent concurrently running schedulers from picking them up)
@return array Jobs to be run for given DateTime.
Get jobs scheduled for the given DateTime .