[ Index ] |
PHP Cross Reference of MyBB 1.8.38 |
[Source view] [Print] [Project Stats]
MyBB 1.8 Copyright 2014 MyBB Group, All Rights Reserved
File Size: | 813 lines (22 kb) |
Included or required: | 8 times |
Referenced: | 0 times |
Includes or requires: | 3 files inc/class_parser.php inc/class_templates.php inc/functions_task.php |
errorHandler:: (9 methods):
__construct()
error_callback()
error()
show_warnings()
trigger()
log_error()
email_error()
output_error()
generate_backtrace()
Class: errorHandler - X-Ref
__construct() X-Ref |
Initializes the error handler |
error_callback($type, $message, $file=null, $line=0) X-Ref |
Passes relevant arguments for error processing. param: string $type The error type (i.e. E_ERROR, E_FATAL) param: string $message The error message param: string $file The error file param: integer $line The error line |
error($type, $message, $file=null, $line=0, $allow_output=true) X-Ref |
Processes an error. return: boolean True if parsing was a success, otherwise assume a error param: string $type The error type (i.e. E_ERROR, E_FATAL) param: string $message The error message param: string $file The error file param: integer $line The error line param: boolean $allow_output Whether or not output is permitted |
show_warnings() X-Ref |
Returns all the warnings return: string|bool The warnings or false if no warnings exist |
trigger($message="", $type=E_USER_ERROR) X-Ref |
Triggers a user created error Example: $error_handler->trigger("Some Warning", E_USER_ERROR); param: string $message Message param: string|int $type Type |
log_error($type, $message, $file, $line) X-Ref |
Logs the error in the specified error log file. param: string $type Warning type param: string $message Warning message param: string $file Warning file param: integer $line Warning line |
email_error($type, $message, $file, $line) X-Ref |
Emails the error in the specified error log file. return: bool returns false if no admin email is set param: string $type Warning type param: string $message Warning message param: string $file Warning file param: integer $line Warning line |
output_error($type, $message, $file, $line) X-Ref |
param: string $type param: string $message param: string $file param: int $line |
generate_backtrace($html=true, $strip=1) X-Ref |
Generates a backtrace if the server supports it. return: string The generated backtrace |
2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup | Cross-referenced by PHPXref |