contributions/scheduler/behaviour/scheduler/diehard1.rescheduler.php
Go to the documentation of this file.00001 <?php 00002 require_once dirname(__FILE__) . '/rescheduler.base.php'; 00003 00004 /** 00005 * Run several times 00006 */ 00007 class ReschedulerDiehard1 extends ReschedulerBase { 00008 /** 00009 * Returns all schedules for this policy as array. 00010 * 00011 * Array index is number of runs done, value is the difference to last run in seconds 00012 * 00013 * @return array 00014 */ 00015 protected function get_schedules() { 00016 return array( 00017 0 => 2 * GyroDate::ONE_MINUTE, 00018 1 => 15 * GyroDate::ONE_MINUTE, 00019 2 => 30 * GyroDate::ONE_MINUTE, 00020 3 => 1 * GyroDate::ONE_HOUR, 00021 4 => 2 * GyroDate::ONE_HOUR, 00022 5 => 3 * GyroDate::ONE_HOUR, 00023 6 => 6 * GyroDate::ONE_HOUR, 00024 7 => 12 * GyroDate::ONE_HOUR, 00025 ); 00026 } 00027 }