core
Packages
Interfaces
Classes
Files

Class: Errors

Source Location: /core/errors.class.php [line 45]

Class Overview


This class is the error manager of PHPBoost. It is designed to collect and store all errors occurs in the projet.

Author(s):

  • Viarre Régis crowkait@phpboost.com


Class Details

This class is the error manager of PHPBoost. It is designed to collect and store all errors occurs in the projet.

Tags:

  • author: Viarre Régis crowkait@phpboost.com
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]


Class Methods

constructor Errors [line 52]

Errors Errors( [boolean $archive_all = false])
constructor

Parameters:

boolean   $archive_all   TRUE archive all events FALSE if not
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method display [line 243]

string display( string $errstr, int $errno, [string $errline = ''], [string $errfile = ''], [boolean $archive = false])
Exception handler for developper, return the error.

Tags:

  • return: The formated error.

Parameters:

string   $errstr   The text which explain the error.
int   $errno   The error type (use the PHP errors constants).
string   $errline   The error line (use the constant __LINE__).
string   $errfile   The file where the error is located (use the constant __FILE__).
boolean   $archive   (optional) Backup the error in the error.log file
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method get_errno_class [line 346]

void get_errno_class( $errno)
Get Error type

Parameters:

   $errno  
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method get_last__error_log [line 315]

void get_last__error_log( )
Get last error informations
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method handler [line 151]

void handler( string $errstr, int $errno, [string $errline = ''], [string $errfile = ''], [string $tpl_cond = ''], [boolean $archive = false], [boolean $stop = true])
Exception handler for developper.

Parameters:

string   $errstr   The text which explain the error.
int   $errno   The error type (use the PHP errors constants).
string   $errline   The error line (use the constant __LINE__).
string   $errfile   The file where the error is located (use the constant __FILE__).
string   $tpl_cond   (optional) This argument allow you to display error in a template condition.
boolean   $archive   (optional) Backup the error in the error.log file
boolean   $stop   Avoid redirect loop.
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method handler_php [line 81]

void handler_php( string $errno, string $errstr, string $errfile, string $errline)
PHP exceptions handler

Parameters:

string   $errno   error number
string   $errstr   error label
string   $errfile   file name
string   $errline   line number
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method set_default_template [line 304]

void set_default_template( )
Set default template for the handler methods.
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]

method set_template [line 295]

void set_template( &$template)
Set a personnal template for the handler methods.

Parameters:

   &$template  
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]


Class Variables

[line 414]   mixed  $archive_all 
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]
[line 417]   mixed  $personal_tpl  =  false
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]
[line 415]   mixed  $redirect 
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]
[line 416]   mixed  $template 
[ Top ] - [ Class Details ] - [ Methods ] - [ Variables ]
Documentation generated on Tue, 28 Jul 2009 22:43:36 +0200 by phpDocumentor 1.4.1