Skip to content
Jeff Johns edited this page Feb 4, 2014 · 4 revisions
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

$ php index.php cron

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