phpPoA2
[ class tree: phpPoA2 ] [ index: phpPoA2 ] [ all elements ]

Class: PoAEventHandler

Source Location: /PoAEventHandler.php

Class Overview


Class to handle events inside the library.


Methods



Class Details

[line 30]
Class to handle events inside the library.



[ Top ]


Class Methods


constructor __construct [line 39]

PoAEventHandler __construct( $site, [ $log = null], [ $debug = false])

Main constructor.



Tags:

access:  public


Parameters:

   $site  
   $log  
   $debug  

[ Top ]

method abort [line 64]

void abort( $code, $message)

Finish execution and print an error message with the current backtrace.



Tags:

access:  public


Parameters:

   $code  
   $message  

[ Top ]

method autoloadHandler [line 83]

void autoloadHandler( $class_name)

Override __autoload standard function to allow loading classes dinamically.



Parameters:

   $class_name  

[ Top ]

method errorHandler [line 116]

void errorHandler( code $code, message $message, file $file, line $line)

A generic error handler that logs the error message.



Tags:

access:  public


Parameters:

code   $code   The error code.
message   $message   The error message.
file   $file   The file that triggered the error.
line   $line   The line of the file where the error was triggered.

[ Top ]

method exceptionHandler [line 105]

void exceptionHandler( exception $exception)

A generic exception handler that logs the exception message.



Tags:

access:  public


Parameters:

exception   $exception   The catched exception.

[ Top ]

method setDebug [line 57]

void setDebug( debug $debug)

Set debugging mode.



Tags:

access:  public


Parameters:

debug   $debug   A boolean value telling whether to make debugging active or not.

[ Top ]

method setLogger [line 49]

void setLogger( log $log)

Set the logger.



Tags:

access:  public


Parameters:

log   $log   The logger to use.

[ Top ]


Documentation generated on Wed, 13 Oct 2010 15:06:24 +0200 by phpDocumentor 1.4.3