Usage * * Implement a daily task by extending DailyTask and implementing process(). * * * class MyTask extends DailyTask { * function process() { * // implement your task here * } * } * * * You can also implement the index() method to overwrite which singleton classes are instantiated and processed. * By default, all subclasses of the task are instantiated and used. For the DailyTask class, this means * that an instance of each subclass of DailyTask will be created. * * You can test your task from the command line by running the following command * (replace is the classname of your task): * * framework/cli-script.php / * * To perform all Daily tasks, run from the command line: * * cli-script.php /DailyTask * * Example Cron Definition * * * # Quarter-hourly task (every hour at 25 minutes past) (remove space between first * and /15) * * /15 * * * * www-data /webroot/framework/cli-script.php /QuarterlyHourlyTask > /var/log/quarterhourlytask.log * * # HourlyTask (every hour at 25 minutes past) * 25 * * * * www-data /webroot/framework/cli-script.php /HourlyTask > /var/log/hourlytask.log * * # DailyTask (every day at 6:25am) * 25 6 * * * www-data /webroot/framework/cli-script.php /DailyTask > /var/log/dailytask.log * * # WeelkyTask (every Monday at 6:25am) * 25 6 1 * * www-data /webroot/framework/cli-script.php /WeeklyTask > /var/log/weeklytask.log * * * @todo Improve documentation * @package framework * @subpackage cron */ abstract class ScheduledTask extends CliController { // this class exists as a logical extension }