Methods for initialising, recording the progress of, and finalising and cron scripts
This is the code documentation for the SproutCMS project
Search documentation |
class CronMethods for initialising, recording the progress of, and finalising and cron scripts
Variables
Functions
public exceptionHandlervoid Cron::exceptionHandler ( mixed $exception ); Exception and error handling for CRON jobs public failurevoid Cron::failure ( [ mixed $message ] ); Report that a cron job failed. Should be used with a return statement to end the execution of the job. public messagevoid Cron::message ( [ string $message ] ); Save and output log message for the currently running cron job public shutdownvoid Cron::shutdown ( ); Shutdown function, for catching fatal errors public startunknown Cron::start ( mixed $job_name ); Called at the beginning of a cron job. Checks for appropriate access permissions. Creates a database record for the logging messages. Note that this function opens an additional database connection, allowing logging to continue to work even if the main script is using transactions - which it should be. public successvoid Cron::success ( ); Report the successful completion of the cron job. |
Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Monday, 3rd April, 2023 at 02:59 pm |