Class ErrorHandler

Description

Error Handler class

This class contains a custom error handler in order to display user notices/warnings/errors and php notices and warnings in a template

  • author: Marc Groot Koerkamp

Located in /class/error.class.php (line 34)


	
			
Method Summary
ErrorHandler ErrorHandler ( &$oTemplate, string $sTemplateFile, object $oTemplate)
void AssignDelayedErrors ( &$aDelayedErrors, array $aDelayedErrors)
void DisplayErrors ()
void HeaderSent ()
void setDelayedErrors ([ $val = true])
void SetTemplateFile ( $sTemplateFile)
void SquirrelMailErrorhandler ( $iErrNo,  $sErrStr,  $sErrFile,  $iErrLine,  $aContext)
Methods
Constructor ErrorHandler (line 42)

Constructor

  • since: 1.5.1
ErrorHandler ErrorHandler ( &$oTemplate, string $sTemplateFile, object $oTemplate)
  • object $oTemplate: Template object
  • string $sTemplateFile: Template containing the error template
  • &$oTemplate
AssignDelayedErrors (line 84)

Store errors generated in a previous script but couldn't be displayed

due to a header redirect. This requires storing of aDelayedErrors in the session

  • since: 1.5.1
void AssignDelayedErrors ( &$aDelayedErrors, array $aDelayedErrors)
  • array $aDelayedErrors: array with errors stored in the $this->aErrors format.
  • &$aDelayedErrors
DisplayErrors (line 262)

Display the error array in the error template

  • since: 1.5.1
void DisplayErrors ()
HeaderSent (line 64)

Sets if the page header is already sent

  • since: 1.5.1
void HeaderSent ()
saveDelayedErrors (line 242)

Force the delayed errors to be stored in the session in case

$this->displayErrors() never gets called, e.g. in compose.php

void saveDelayedErrors ()
setDelayedErrors (line 73)

Turn on/off delayed error handling

  • since: 1.5.2
void setDelayedErrors ([ $val = true])
  • $val
SetTemplateFile (line 56)

Sets the error template

  • since: 1.5.1
void SetTemplateFile ( $sTemplateFile)
  • $sTemplateFile
SquirrelMailErrorhandler (line 97)

Custom Error handler (set with set_error_handler() )

  • since: 1.5.1
  • private:
void SquirrelMailErrorhandler ( $iErrNo,  $sErrStr,  $sErrFile,  $iErrLine,  $aContext)
  • $iErrNo
  • $sErrStr
  • $sErrFile
  • $iErrLine
  • $aContext

Documentation generated on Thu, 23 Oct 2014 04:18:26 +0200 by phpDocumentor 1.4.3