SproutCMS

This is the code documentation for the SproutCMS project

class CronJobController

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

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2026-09-15
**/
class NewClassName extends CronJobController {
    
    public function __construct () {
        // Method code goes here
    }
    
    /**
    * 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 function run (string $schedule) {
        // Method code goes here
    }
    
    /**
    * 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 =&gt; class, 3 =&gt; function
    **/
    public function runJob () {
        // Method code goes here
    }
    
}
?>