ErrorHandler
in package
implements
ErrorHandlerInterface
Handle Errors that might occur during execution of ldap_*-functions
Table of Contents
Interfaces
- ErrorHandlerInterface
- Handle Errors that might occur during execution of ldap_*-functions
Properties
Methods
- setErrorHandler() : void
- Set the error handler to be used
- start() : void
- Start the Error-Handling
- startErrorHandling() : void
- This method does nothing on purpose.
- stop() : mixed
- stopErrorHandling() : void
- This method does nothing on purpose.
- getErrorHandler() : ErrorHandlerInterface
- Get an error handler
Properties
$errorHandler
protected
static ErrorHandlerInterface
$errorHandler
The Errror-Handler instance
Methods
setErrorHandler()
Set the error handler to be used
public
static setErrorHandler(ErrorHandlerInterface $errorHandler) : void
Parameters
- $errorHandler : ErrorHandlerInterface
start()
Start the Error-Handling
public
static start([int $level = E_WARNING ]) : void
You can specify which errors to handle by passing a combination of PHPs Error-constants like E_WARNING or E_NOTICE or E_WARNING ^ E_DEPRECATED
Parameters
- $level : int = E_WARNING
-
The Error-level(s) to handle by this ErrorHandler
startErrorHandling()
This method does nothing on purpose.
public
startErrorHandling([int $level = E_WARNING ]) : void
Parameters
- $level : int = E_WARNING
Tags
stop()
public
static stop([bool|false $throw = false ]) : mixed
Parameters
- $throw : bool|false = false
stopErrorHandling()
This method does nothing on purpose.
public
stopErrorHandling([bool|false $throw = false ]) : void
Parameters
- $throw : bool|false = false
Tags
getErrorHandler()
Get an error handler
protected
static getErrorHandler() : ErrorHandlerInterface