PHP Trait LdapTools\Operation\Invoker\LdapOperationInvokerTrait

Author: Chad Sikorra ([email protected])
Afficher le fichier Open project: ldaptools/ldaptools

Protected Properties

Свойство Type Description
$connection LdapTools\Connection\LdapConnectionInterface
$dispatcher LdapTools\Event\EventDispatcherInterface
$handler LdapTools\Operation\Handler\OperationHandlerInterface[]
$logger LdapTools\Log\LdapLoggerInterface

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

logEnd() protected méthode

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

logExceptionAndThrow() protected méthode

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 méthode

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

setConnection() public méthode

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

setEventDispatcher() public méthode

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

setLogger() public méthode

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

shouldLog() protected méthode

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

Property Details

$connection protected_oe property

protected LdapConnectionInterface,LdapTools\Connection $connection
Résultat LdapTools\Connection\LdapConnectionInterface

$dispatcher protected_oe property

protected EventDispatcherInterface,LdapTools\Event $dispatcher
Résultat LdapTools\Event\EventDispatcherInterface

$handler protected_oe property

protected OperationHandlerInterface[],LdapTools\Operation\Handler $handler
Résultat LdapTools\Operation\Handler\OperationHandlerInterface[]

$logger protected_oe property

protected LdapLoggerInterface,LdapTools\Log $logger
Résultat LdapTools\Log\LdapLoggerInterface