PHP Trait LdapTools\Operation\Invoker\LdapOperationInvokerTrait

Author: Chad Sikorra ([email protected])
Datei anzeigen Open project: ldaptools/ldaptools

Protected Properties

Property Type Description
$connection LdapTools\Connection\LdapConnectionInterface
$dispatcher LdapTools\Event\EventDispatcherInterface
$handler LdapTools\Operation\Handler\OperationHandlerInterface[]
$logger LdapTools\Log\LdapLoggerInterface

Public Methods

Method Description
addHandler ( LdapTools\Operation\Handler\OperationHandlerInterface $handler )
setConnection ( LdapTools\Connection\LdapConnectionInterface $connection )
setEventDispatcher ( LdapTools\Event\EventDispatcherInterface $dispatcher )
setLogger ( LdapTools\Log\LdapLoggerInterface $logger = null )

Protected Methods

Method Description
logEnd ( LogOperation $log = null ) End a logging operation.
logExceptionAndThrow ( Throwable | Exception $exception, LogOperation $log = null ) Handles exception error message logging if logging is enabled then re-throws the exception.
logStart ( LogOperation $log = null ) Start a logging operation.
shouldLog ( LogOperation $log = null ) : boolean Determine whether logging should be used.

Method Details

addHandler() public method

public addHandler ( LdapTools\Operation\Handler\OperationHandlerInterface $handler )
$handler LdapTools\Operation\Handler\OperationHandlerInterface

logEnd() protected method

End a logging operation.
protected logEnd ( LogOperation $log = null )
$log LdapTools\Log\LogOperation

logExceptionAndThrow() protected method

Handles exception error message logging if logging is enabled then re-throws the exception.
protected logExceptionAndThrow ( Throwable | Exception $exception, LogOperation $log = null )
$exception Throwable | Exception
$log LdapTools\Log\LogOperation

logStart() protected method

Start a logging operation.
protected logStart ( LogOperation $log = null )
$log LdapTools\Log\LogOperation

setConnection() public method

public setConnection ( LdapTools\Connection\LdapConnectionInterface $connection )
$connection LdapTools\Connection\LdapConnectionInterface

setEventDispatcher() public method

public setEventDispatcher ( LdapTools\Event\EventDispatcherInterface $dispatcher )
$dispatcher LdapTools\Event\EventDispatcherInterface

setLogger() public method

public setLogger ( LdapTools\Log\LdapLoggerInterface $logger = null )
$logger LdapTools\Log\LdapLoggerInterface

shouldLog() protected method

Determine whether logging should be used.
protected shouldLog ( LogOperation $log = null ) : boolean
$log LdapTools\Log\LogOperation
return boolean

Property Details

$connection protected_oe property

protected LdapConnectionInterface,LdapTools\Connection $connection
return LdapTools\Connection\LdapConnectionInterface

$dispatcher protected_oe property

protected EventDispatcherInterface,LdapTools\Event $dispatcher
return LdapTools\Event\EventDispatcherInterface

$handler protected_oe property

protected OperationHandlerInterface[],LdapTools\Operation\Handler $handler
return LdapTools\Operation\Handler\OperationHandlerInterface[]

$logger protected_oe property

protected LdapLoggerInterface,LdapTools\Log $logger
return LdapTools\Log\LdapLoggerInterface