errorHandler Class Reference

List of all members.

Public Member Functions

 errorHandler ($url)
 handle ($errorName, $errorDescription)
 render ()

Public Attributes

 $errors
 string The list containing errors
 $handled = false
 boolean Wether errors exist or not
 $url
 string The URL to return to


Detailed Description

Class designed to handle and present errors...

Definition at line 27 of file shared-errorhandler.php.


Member Function Documentation

errorHandler::errorHandler ( url  ) 

Constructor

Definition at line 36 of file shared-errorhandler.php.

References $url.

errorHandler::handle ( errorName,
errorDescription 
)

Takes output from a function describing the error...

Parameters:
errorName Name of the error
errorDescription Description of the error, or true if the error is not an error Use this distinction to handle return values from functions
Returns:
mixed Returns the errorDescription

Definition at line 51 of file shared-errorhandler.php.

References i18n().

Here is the call graph for this function:

errorHandler::render (  ) 

Renders the errors to present them to the user

Returns:
string The rendered error descriptions

Definition at line 72 of file shared-errorhandler.php.

References i18n().

Here is the call graph for this function:


Member Data Documentation

errorHandler::$errors

string The list containing errors

Definition at line 29 of file shared-errorhandler.php.

errorHandler::$handled = false

boolean Wether errors exist or not

Definition at line 30 of file shared-errorhandler.php.

errorHandler::$url

string The URL to return to

Definition at line 31 of file shared-errorhandler.php.

Referenced by errorHandler().


The documentation for this class was generated from the following file:

Generated on Sun Oct 26 20:33:15 2008 for The Travelsized Content Management System by  doxygen 1.5.5