Inheritance diagram for CronTab:
Collaboration diagram for CronTab:Public Member Functions | |
| act_poll_cron () | |
Static Public Member Functions | |
| static | run_cron ($async=false) |
| static | get_cronjob ($name) |
| static | delete_cronjob ($name) |
| static | add_cron ($paramarray) |
| static | add_single_cron ($name, $callback, $run_time, $description= '') |
| static | add_hourly_cron ($name, $callback, $description= '') |
| static | add_daily_cron ($name, $callback, $description= '') |
| static | add_weekly_cron ($name, $callback, $description= '') |
| static | add_monthly_cron ($name, $callback, $description= '') |
Static class to build and read cron entries
Definition at line 11 of file crontab.php.
| CronTab::act_poll_cron | ( | ) |
Handles asyncronous cron calls.
Definition at line 88 of file crontab.php.
| static CronTab::add_cron | ( | $ | paramarray | ) | [static] |
Add a new cron job to the DB.
| array | $paramarray A paramarray of cron job feilds. |
Definition at line 158 of file crontab.php.
Referenced by add_daily_cron(), add_hourly_cron(), add_monthly_cron(), add_single_cron(), and add_weekly_cron().
| static CronTab::add_daily_cron | ( | $ | name, | |
| $ | callback, | |||
| $ | description = '' | |||
| ) | [static] |
Add a new cron job to the DB, that runs daily.
| string | $name The name of the cron job. | |
| mixed | $callback The callback function or plugin action for the cron job to execute. | |
| string | $description The description of the cron job. |
Definition at line 216 of file crontab.php.
| static CronTab::add_hourly_cron | ( | $ | name, | |
| $ | callback, | |||
| $ | description = '' | |||
| ) | [static] |
Add a new cron job to the DB, that runs hourly.
| string | $name The name of the cron job. | |
| mixed | $callback The callback function or plugin action for the cron job to execute. | |
| string | $description The description of the cron job. |
Definition at line 198 of file crontab.php.
| static CronTab::add_monthly_cron | ( | $ | name, | |
| $ | callback, | |||
| $ | description = '' | |||
| ) | [static] |
Add a new cron job to the DB, that runs monthly.
| string | $name The name of the cron job. | |
| mixed | $callback The callback function or plugin action for the cron job to execute. | |
| string | $description The description of the cron job. |
Definition at line 252 of file crontab.php.
| static CronTab::add_single_cron | ( | $ | name, | |
| $ | callback, | |||
| $ | run_time, | |||
| $ | description = '' | |||
| ) | [static] |
Add a new cron job to the DB, that runs only once.
| string | $name The name of the cron job. | |
| mixed | $callback The callback function or plugin action for the cron job to execute. | |
| HabariDateTime | $run_time The time to execute the cron. | |
| string | $description The description of the cron job. |
Definition at line 179 of file crontab.php.
Referenced by Update::check_plugins(), and Posts::update_scheduled_posts_cronjob().
| static CronTab::add_weekly_cron | ( | $ | name, | |
| $ | callback, | |||
| $ | description = '' | |||
| ) | [static] |
Add a new cron job to the DB, that runs weekly.
| string | $name The name of the cron job. | |
| mixed | $callback The callback function or plugin action for the cron job to execute. | |
| string | $description The description of the cron job. |
Definition at line 234 of file crontab.php.
| static CronTab::delete_cronjob | ( | $ | name | ) | [static] |
Delete a Cron Job by name or id from the Database.
| mixed | $name The name or id of the cron job to delete. |
Definition at line 143 of file crontab.php.
Referenced by Posts::update_scheduled_posts_cronjob().
| static CronTab::get_cronjob | ( | $ | name | ) | [static] |
Get a Cron Job by name or id from the Database.
| mixed | $name The name or id of the cron job to retreive. |
Definition at line 126 of file crontab.php.
Referenced by delete_cronjob().
| static CronTab::run_cron | ( | $ | async = false |
) | [static] |
Executes all cron jobs in the DB if there are any to run.
| boolean | $async If true, allows execution to continue by making an asynchronous request to a cron URL |
Definition at line 18 of file crontab.php.
1.7.1