PHP Класс LdapTools\Operation\Invoker\LdapOperationInvoker

Автор: Chad Sikorra ([email protected])
Наследование: implements LdapTools\Operation\Invoker\LdapOperationInvokerInterface, use trait LdapOperationInvokerTrait
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( )
execute ( LdapTools\Operation\LdapOperationInterface $operation )

Защищенные методы

Метод Описание
connectIfNotBound ( LdapTools\Operation\LdapOperationInterface $operation ) If a connection is not bound (such as a lazy bind config) we need to force a connection.
executeOperation ( LdapTools\Operation\LdapOperationInterface $operation, LogOperation $log = null ) : mixed Execute a given operation with an operation handler.
getLogObject ( LdapTools\Operation\LdapOperationInterface $operation ) : LogOperation | null Construct the LogOperation object for the operation.
getOperationHandler ( LdapTools\Operation\LdapOperationInterface $operation ) : LdapTools\Operation\Handler\OperationHandlerInterface Find and return a supported handler for the operation.
idleReconnectIfNeeded ( LdapTools\Operation\LdapOperationInterface $operation ) If the connection has been open as long as, or longer than, the configured idle reconnect time, then close and reconnect the LDAP connection.
resetLdapControls ( LdapTools\Operation\LdapOperationInterface $operation ) Reset any specific LDAP controls used with this operation. This is to make sure they are not accidentally used in future operations when it is not expected.
setLdapControls ( LdapTools\Operation\LdapOperationInterface $operation ) Set any specific LDAP controls for this operation.
shouldSkipOperation ( LdapTools\Operation\LdapOperationInterface $operation ) : boolean It's possible we need to skip an operation. For example, if a batch operation was only for attribute values that were converted into other operations (such as a modification where only operation generator converters are used).
switchServerIfNeeded ( string | null $currentServer, string | null $wantedServer, LdapTools\Operation\LdapOperationInterface $operation ) Performs the logic for switching the LDAP server connection.

Описание методов

__construct() публичный метод

public __construct ( )

connectIfNotBound() защищенный метод

If a connection is not bound (such as a lazy bind config) we need to force a connection.
protected connectIfNotBound ( LdapTools\Operation\LdapOperationInterface $operation )
$operation LdapTools\Operation\LdapOperationInterface

execute() публичный метод

public execute ( LdapTools\Operation\LdapOperationInterface $operation )
$operation LdapTools\Operation\LdapOperationInterface

executeOperation() защищенный метод

Execute a given operation with an operation handler.
protected executeOperation ( LdapTools\Operation\LdapOperationInterface $operation, LogOperation $log = null ) : mixed
$operation LdapTools\Operation\LdapOperationInterface
$log LdapTools\Log\LogOperation
Результат mixed

getLogObject() защищенный метод

Construct the LogOperation object for the operation.
protected getLogObject ( LdapTools\Operation\LdapOperationInterface $operation ) : LogOperation | null
$operation LdapTools\Operation\LdapOperationInterface
Результат LdapTools\Log\LogOperation | null

getOperationHandler() защищенный метод

Find and return a supported handler for the operation.
protected getOperationHandler ( LdapTools\Operation\LdapOperationInterface $operation ) : LdapTools\Operation\Handler\OperationHandlerInterface
$operation LdapTools\Operation\LdapOperationInterface
Результат LdapTools\Operation\Handler\OperationHandlerInterface

idleReconnectIfNeeded() защищенный метод

If the connection has been open as long as, or longer than, the configured idle reconnect time, then close and reconnect the LDAP connection.
protected idleReconnectIfNeeded ( LdapTools\Operation\LdapOperationInterface $operation )
$operation LdapTools\Operation\LdapOperationInterface

resetLdapControls() защищенный метод

Reset any specific LDAP controls used with this operation. This is to make sure they are not accidentally used in future operations when it is not expected.
protected resetLdapControls ( LdapTools\Operation\LdapOperationInterface $operation )
$operation LdapTools\Operation\LdapOperationInterface

setLdapControls() защищенный метод

Set any specific LDAP controls for this operation.
protected setLdapControls ( LdapTools\Operation\LdapOperationInterface $operation )
$operation LdapTools\Operation\LdapOperationInterface

shouldSkipOperation() защищенный метод

In that case the resulting batch operation will be empty but will have generated post/pre operations for it still. The most common scenario is group membership only changes.
protected shouldSkipOperation ( LdapTools\Operation\LdapOperationInterface $operation ) : boolean
$operation LdapTools\Operation\LdapOperationInterface
Результат boolean

switchServerIfNeeded() защищенный метод

Performs the logic for switching the LDAP server connection.
protected switchServerIfNeeded ( string | null $currentServer, string | null $wantedServer, LdapTools\Operation\LdapOperationInterface $operation )
$currentServer string | null The server we are currently on.
$wantedServer string | null The server we want the connection to be on.
$operation LdapTools\Operation\LdapOperationInterface