Exemple #1
0
 public static function scheduleThumbCrunch($sThumbUrl, $iFeedItemId)
 {
     $oTask = new Task();
     $oTask->processFrom = Carbon::now();
     $oTask->job = "crunch-feed-image";
     $oTask->name = $sThumbUrl;
     $oTask->detail = $iFeedItemId;
     $oTask->save();
 }
Exemple #2
0
 public static function next()
 {
     /* return next available item or null */
     $oTask = Task::where('processFrom', '<', Carbon::now())->first();
     return $oTask;
 }