HumHub Documentation (unofficial)

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

$errorHandler  : ErrorHandlerInterface

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

Methods

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

stop()

public static stop([bool|false $throw = false ]) : mixed
Parameters
$throw : bool|false = false

        
On this page

Search results