/** * Function used to set an error * * This function will accept a status and a message for later usage in the error handler. * * @param mixed $status The status for the error (404, 0, error, ...) * @param string $message The message for the error (FILE_NOT_FOUND, ACCESS_DENIED, ...) */ private static function SetError($status, $message) { self::$error = array('status' => $status, 'message' => $message); // Save the status and message as array }