contributions/scheduler/behaviour/scheduler/rushhour2.rescheduler.php
Go to the documentation of this file.00001 <?php 00002 require_once dirname(__FILE__) . '/rescheduler.base.php'; 00003 00004 /** 00005 * Run every 2 hours 00006 */ 00007 class ReschedulerRushhour2 extends ReschedulerBase { 00008 /** 00009 * Return new schedule time for given task or FALSE if task schould end 00010 * 00011 * @param DAOScheduler $task 00012 * @param Status Indicated if schould be rescheduled on success or failure 00013 * @return datetime 00014 */ 00015 public function reschedule($task, $status) { 00016 return time() + 2 * GyroDate::ONE_HOUR; 00017 } 00018 }