Controller Cron
| Controller | Extends | Path |
|---|---|---|
| Cron | Plain_Controller | /application/controllers/cron.php |
Request Types
| Type | Accessible |
|---|---|
| XMLHttpRequest | No |
| API | No |
| Web View | No |
This controller handles all the requests for cron jobs for the service.
Methods
__construct - Public
Called automatically which in turn calls the parent constructor. It also does the following:
- Checks if request is coming from command line, redirect out if not
index - Public
Default route. Simply prints out a statement.
Example
processEmbeds - Public
Used to run through all the marks in the marks table and look for embeds. If an embed is found, it saves it; else marks the record as processed.
Example
$ php index.php cron processEmbeds