Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/sfoyston/public_html/TextStorm/Wiki/inc/init.php on line 560
Warning: Cannot modify header information - headers already sent by (output started at /home/sfoyston/public_html/TextStorm/Wiki/inc/init.php:560) in /home/sfoyston/public_html/TextStorm/Wiki/inc/auth.php on line 495
Warning: Cannot modify header information - headers already sent by (output started at /home/sfoyston/public_html/TextStorm/Wiki/inc/init.php:560) in /home/sfoyston/public_html/TextStorm/Wiki/inc/parser/code.php on line 30
Warning: Cannot modify header information - headers already sent by (output started at /home/sfoyston/public_html/TextStorm/Wiki/inc/init.php:560) in /home/sfoyston/public_html/TextStorm/Wiki/inc/parser/code.php on line 31
Warning: Cannot modify header information - headers already sent by (output started at /home/sfoyston/public_html/TextStorm/Wiki/inc/init.php:560) in /home/sfoyston/public_html/TextStorm/Wiki/inc/parser/code.php on line 32
schedRef to get the SchedRef of your script, useful for logging purposes
echo $this->schedRef;
///$this->date is the datetimestamp last known by SchedMan, you can update this using the method below. Useful for logging.
echo $this->date;
///Call this method if you are using $this->date for a DateTime and would like it to be updated - useful for logging purposes
$this->UpdateDateTime();
///generate a log you can see in the database for your script
$this->GenerateLog($this->schedRef, "Script Began Running at: $this->date", -1);
///you can reference $this->db for your database connection if SchedMan is configured on the correct database for this script
$this->db->query("SELECT * FROM schedlogs");
///need to set the job as failed if a try/catch goes wrong or validates incorrectly?
$this->setJobAsInError("The job failed as we could not change x to 1");
//tell SchedMan how many rows your job affected
$this->rowsAffected = 1;
}