PHP Class LdapTools\Hydrator\OperationHydrator

Inheritance: extends ArrayHydrator, use trait HydrateQueryTrait
Afficher le fichier Open project: ldaptools/ldaptools Class Usage Examples

Protected Properties

Свойство Type Description
$alias string The current alias for the context of a query operation.
$operation LdapTools\Operation\LdapOperationInterface

Méthodes publiques

Méthode Description
hydrateToLdap ( $operation, $dn = null )
setAlias ( null | string $alias ) Set the current alias that the operation is targeting (in the context of a query operation).

Méthodes protégées

Méthode Description
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".

Method Details

configureValueResolver() protected méthode

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

filterAttributeValues() protected méthode

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
Résultat array

hydrateAddOperation() protected méthode

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

hydrateModifyOperation() protected méthode

protected hydrateModifyOperation ( BatchModifyOperation $operation ) : BatchModifyOperation
$operation LdapTools\Operation\BatchModifyOperation
Résultat LdapTools\Operation\BatchModifyOperation

hydrateOperation() protected méthode

protected hydrateOperation ( LdapTools\Operation\LdapOperationInterface $operation ) : LdapTools\Operation\LdapOperationInterface
$operation LdapTools\Operation\LdapOperationInterface
Résultat LdapTools\Operation\LdapOperationInterface

hydrateQueryOperation() protected méthode

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

hydrateToLdap() public méthode

public hydrateToLdap ( $operation, $dn = null )

setAlias() public méthode

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() protected méthode

Set some default parameters based off the connection.
protected setDefaultParameters ( ) : array
Résultat array

setDnToUse() protected méthode

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

Property Details

$alias protected_oe property

The current alias for the context of a query operation.
protected string $alias
Résultat string

$operation protected_oe property

protected LdapOperationInterface,LdapTools\Operation $operation
Résultat LdapTools\Operation\LdapOperationInterface