SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class CronJobController

Runs scheduled tasks assigned by Register::cronJob on behalf of the UN*X cron utility

Functions

NameVisibilityDescription
__constructpublic 
runpublicRun a given cron schedule
runJobpublicInternal job runner for cron jobs

public __construct

void $CronJobController->__construct ( );

This function does not have a description

public run

void $CronJobController->run ( string $schedule );

Run a given cron schedule

Each individual job is run independently of the others using a php sub-process
This means that *any* failure of a given job will be isolated and other
jobs will continue to run

public runJob

void $CronJobController->runJob ( );

Internal job runner for cron jobs

Just creates an instance of the class (must be a controller), then calls the method

Parameters are passed by CLI argv array; 2 => class, 3 => function