Constructor & Destructor Documentation
Cron::__construct |
( |
| ) |
[protected] |
Member Function Documentation
Cron::addTask |
( |
$ |
taskOrId, |
|
|
$ |
callback = null , |
|
|
$ |
params = null , |
|
|
$ |
interval = null |
|
) |
| |
Adds CRON task as a callback function.
- Parameters:
-
| $id | Unique task id |
| $func | Callable function (string, or array) |
array | $params | Array of parameters to pass to the function |
| $interval | Number of seconds between task runs, or string in the format understandable by strtotime() (eg. "+1 day 18:00" will run task again after one day, at 6pm.) |
static Cron::cacheUrls |
( |
$ |
dir, |
|
|
$ |
urls |
|
) |
| [static] |
static Cron::instance |
( |
$ |
create = true | ) |
[static] |
Cron::run |
( |
$ |
taskId = false | ) |
|
Field Documentation
Cron::$inst = null [static] |
The documentation for this class was generated from the following file: