[ Index ]

PHP Cross Reference of MyBB 1.8.27

title

Body

[close]

/inc/ -> class_error.php (summary)

MyBB 1.8 Copyright 2014 MyBB Group, All Rights Reserved

File Size: 727 lines (20 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

Defines 1 class

errorHandler:: (8 methods):
  __construct()
  error()
  show_warnings()
  trigger()
  log_error()
  email_error()
  output_error()
  generate_backtrace()


Class: errorHandler  - X-Ref

__construct()   X-Ref
Initializes the error handler

error($type, $message, $file=null, $line=0, $allow_output=true)   X-Ref
Parses a error for 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
param: boolean $allow_output Whether or not output is permitted
return: boolean True if parsing was a success, otherwise assume a error

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.
param: string $type Warning type
param: string $message Warning message
param: string $file Warning file
param: integer $line Warning line
return: bool returns false if no admin email is set

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