PHP Класс LdapTools\Hydrator\OperationHydrator

Наследование: extends ArrayHydrator, use trait HydrateQueryTrait
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$alias string The current alias for the context of a query operation.
$operation LdapTools\Operation\LdapOperationInterface

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

Метод Описание
hydrateToLdap ( $operation, $dn = null )
setAlias ( null | string $alias ) Set the current alias that the operation is targeting (in the context of a query operation).

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

Метод Описание
configureValueResolver ( BaseValueResolver $valueResolver, $dn = null )
filterAttributeValues ( array $attributes ) : array Remove empty strings and null values from attribute value arrays. This prevents errors when saving to LDAP and these are present for some reason.
hydrateAddOperation ( AddOperation $operation )
hydrateModifyOperation ( BatchModifyOperation $operation ) : BatchModifyOperation
hydrateOperation ( LdapTools\Operation\LdapOperationInterface $operation ) : LdapTools\Operation\LdapOperationInterface
hydrateQueryOperation ( QueryOperation $operation )
setDefaultParameters ( ) : array Set some default parameters based off the connection.
setDnToUse ( AddOperation $operation ) Builds the DN based off of the "name" attribute. The name attribute should be mapped to the "cn" attribute in pretty much all cases except for creating an OU object. Then the "name" attribute should be mapped to "ou".

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

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

protected configureValueResolver ( BaseValueResolver $valueResolver, $dn = null )
$valueResolver LdapTools\Resolver\BaseValueResolver

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

Remove empty strings and null values from attribute value arrays. This prevents errors when saving to LDAP and these are present for some reason.
protected filterAttributeValues ( array $attributes ) : array
$attributes array
Результат array

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

protected hydrateAddOperation ( AddOperation $operation )
$operation LdapTools\Operation\AddOperation

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

protected hydrateModifyOperation ( BatchModifyOperation $operation ) : BatchModifyOperation
$operation LdapTools\Operation\BatchModifyOperation
Результат LdapTools\Operation\BatchModifyOperation

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

protected hydrateOperation ( LdapTools\Operation\LdapOperationInterface $operation ) : LdapTools\Operation\LdapOperationInterface
$operation LdapTools\Operation\LdapOperationInterface
Результат LdapTools\Operation\LdapOperationInterface

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

protected hydrateQueryOperation ( QueryOperation $operation )
$operation LdapTools\Operation\QueryOperation

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

public hydrateToLdap ( $operation, $dn = null )

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

Set the current alias that the operation is targeting (in the context of a query operation).
public setAlias ( null | string $alias )
$alias null | string

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

Set some default parameters based off the connection.
protected setDefaultParameters ( ) : array
Результат array

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

Builds the DN based off of the "name" attribute. The name attribute should be mapped to the "cn" attribute in pretty much all cases except for creating an OU object. Then the "name" attribute should be mapped to "ou".
protected setDnToUse ( AddOperation $operation )
$operation LdapTools\Operation\AddOperation

Описание свойств

$alias защищенное свойство

The current alias for the context of a query operation.
protected string $alias
Результат string

$operation защищенное свойство

protected LdapOperationInterface,LdapTools\Operation $operation
Результат LdapTools\Operation\LdapOperationInterface