twzCronChart is a PHP5 class that shows a simple Gantt chart of cron tasks
The class parses the crontab to extract task and scheduling information. It also provides methods to retrieve the number of cron tasks, the cron line for each task, and the next or last date for any task.
To use it, simply instantiate the class and call the Chart() method:
$cron = new twzCronChart();
Alternatively you can pass any crontab to the class, and set a few chart options such as date range and chart width:
$MyCron = file('../path/mycron.cron');
$cron = new twzCronChart($MyCron);
echo $cron->Chart('now', '+week', 700);
twzCronChart could be used as the base for a more complex application that allows the user (site owner) to choose the options interactively.
Reply #1 on : Tue August 16, 2011, 22:25:41
Reply #3 on : Mon January 16, 2012, 10:24:58
Reply #5 on : Mon January 16, 2012, 10:48:54
Reply #6 on : Mon January 16, 2012, 10:51:04
Reply #8 on : Mon January 16, 2012, 10:55:47
Reply #10 on : Sun December 30, 2012, 03:07:42
Reply #12 on : Sat March 14, 2015, 00:31:47
Reply #14 on : Thu October 08, 2015, 19:18:00
Reply #16 on : Wed October 28, 2015, 18:39:01
Write a comment
- Required fields are marked with *.