Add a new cron job to the DB.
static
void
add_cron
(array $paramarray)
-
array
$paramarray: A paramarray of cron job feilds.
Add a new cron job to the DB, that runs daily.
static
void
add_daily_cron
(string $name, mixed $callback, [string $description = ''])
-
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.
Add a new cron job to the DB, that runs hourly.
static
void
add_hourly_cron
(string $name, mixed $callback, [string $description = ''])
-
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.
Add a new cron job to the DB, that runs monthly.
static
void
add_monthly_cron
(string $name, mixed $callback, [string $description = ''])
-
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.
Add a new cron job to the DB, that runs only once.
static
void
add_single_cron
(
string $name,
mixed $callback,
HabariDateTime $run_time, [
string $description =
''])
-
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.
Add a new cron job to the DB, that runs weekly.
static
void
add_weekly_cron
(string $name, mixed $callback, [string $description = ''])
-
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.
Delete a Cron Job by name from the Database.
static
bool
delete_cronjob
(string $name)
-
string
$name: The name of the cron job to delete.
Get a Cron Job by name from the Database.
static
CronJob
get_cronjob
(
string $name)
-
string
$name: The name of the cron job to retreive.
Executes all cron jobs in the DB if there are any to run.
static
void
run_cron
([boolean $async = false])
-
boolean
$async: If true, allows execution to continue by making an asynchronous request to a cron URL
Handles asyncronous cron calls.
void
act_poll_cron
()
Inherited Methods
Inherited From ActionHandler
ActionHandler::act()
ActionHandler::act_redirect()
ActionHandler::__call()