[ Index ]

PHP Cross Reference of Eventum

title

Body

[close]

/include/ -> class.error_handler.php (summary)

(no description)

File Size: 217 lines (9 kb)
Included or required: 38 times
Referenced: 0 times
Includes or requires: 3 files
 include/class.misc.php
 include/class.mail.php
 include/class.setup.php

Defines 1 class

Error_Handler:: (3 methods):
  logError()
  _notify()
  _createErrorReport()


Class: Error_Handler  - X-Ref

Class to manage all tasks related to error conditions of the site, such as
logging facilities or alert notifications to the site administrators.

logError($error_msg = 'unknown', $script = 'unknown', $line = 'unknown', $notify_error = true)   X-Ref
Logs the error condition to a specific file and if asked and possible
queue error in mail queue for reporting.

param: mixed $error_msg The error message
param: string $script The script name where the error happened
param: integer $line The line number where the error happened
param: boolean $notify_error Whether error should be notified by email.

_notify(&$notify_msg, $notify_from, $notify_list, $script, $line)   X-Ref
Notifies site administrators of the error condition

param: string $notify_msg The formatted error message
param: string $notify_from Sender of the email
param: string $notify_list Email addresses to whom send the error report.

_createErrorReport(&$error_msg, $script, $line)   X-Ref
Creates error report.

param: mixed $error_msg The error message
param: string $script The script name where the error happened
param: integer $line The line number where the error happened



Generated: Wed Dec 19 21:21:33 2007 Cross-referenced by PHPXref 0.7