| [ Index ] |
PHP Cross Reference of MantisBT |
[Source view] [Print] [Project Stats]
Error API
| Copyright: | Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org |
| Copyright: | Copyright (C) 2002 - 2011 MantisBT Team - mantisbt-dev@lists.sourceforge.net |
| File Size: | 449 lines (13 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| error_handler( $p_type, $p_error, $p_file, $p_line, $p_context ) X-Ref |
| Default error handler This handler will not receive E_ERROR, E_PARSE, E_CORE_*, or E_COMPILE_* errors. E_USER_* are triggered by us and will contain an error constant in $p_error The others, being system errors, will come with a string in $p_error param: int p_type contains the level of the error raised, as an integer. param: string p_error contains the error message, as a string. param: string p_file contains the filename that the error was raised in, as a string. param: int p_line contains the line number the error was raised at, as an integer. param: array p_context to the active symbol table at the point the error occurred (optional) |
| error_print_details( $p_file, $p_line, $p_context ) X-Ref |
| Print out the error details including context param: string $p_file param: int $p_line param: string $p_context return: null |
| error_print_context( $p_context ) X-Ref |
| Print out the variable context given param: string $p_context return: null |
| error_print_stack_trace() X-Ref |
| Print out a stack trace return: null |
| error_build_parameter_string( $p_param, $p_showtype = true, $p_depth = 0 ) X-Ref |
| Build a string describing the parameters to a function param: string $p_param param: bool $p_showtype default true param: int $p_depth default 0 return: string |
| error_string( $p_error ) X-Ref |
| Return an error string (in the current language) for the given error. param: int $p_error return: string |
| error_handled() X-Ref |
| Check if we have handled an error during this page Return true if an error has been handled, false otherwise return: bool |
| error_parameters() X-Ref |
| Set additional info parameters to be used when displaying the next error This function takes a variable number of parameters When writing internationalized error strings, note that you can change the order of parameters in the string. See the PHP manual page for the sprintf() function for more details. return: null |
| error_proceed_url( $p_url ) X-Ref |
| Set a url to give to the user to proceed after viewing the error param: string p_url url given to user after viewing the error return: null |
| error_alternate_class() X-Ref |
| Simple version of helper_alternate_class for use by error api only. return: string representing css class |
| Generated: Thu Jul 28 15:48:31 2011 | Cross-referenced by PHPXref 0.7 |