Public Member Functions | |
__construct () | |
log_exception ($severity, $message, $filepath, $line) | |
show_404 ($page= '', $log_error=TRUE) | |
show_error ($heading, $message, $template= 'error_general', $status_code=500) | |
show_php_error ($severity, $message, $filepath, $line) | |
Data Fields | |
$action | |
$severity | |
$message | |
$filename | |
$line | |
$ob_level | |
$levels | |
__construct | ( | ) |
Constructor
log_exception | ( | $severity, | |
$message, | |||
$filepath, | |||
$line | |||
) |
Exception Logger
This function logs PHP generated error messages
private
string | the error severity |
string | the error string |
string | the error filepath |
string | the error line number |
show_404 | ( | $page = '' , |
|
$log_error = TRUE |
|||
) |
404 Page Not Found Handler
private
string | the page |
bool | log error yes/no |
show_error | ( | $heading, | |
$message, | |||
$template = 'error_general' , |
|||
$status_code = 500 |
|||
) |
General Error Page
This function takes an error message as input (either as a string or an array) and displays it using the specified template.
private
string | the heading |
string | the message |
string | the template name |
int | the status code |
show_php_error | ( | $severity, | |
$message, | |||
$filepath, | |||
$line | |||
) |
Native PHP error handler
private
string | the error severity |
string | the error string |
string | the error filepath |
string | the error line number |
$levels |