PHP Class LdapTools\Hydrator\OperationHydrator

Inheritance: extends ArrayHydrator, use trait HydrateQueryTrait
Datei anzeigen Open project: ldaptools/ldaptools Class Usage Examples

Protected Properties

Property Type Description
$alias string The current alias for the context of a query operation.
$operation LdapTools\Operation\LdapOperationInterface

Public Methods

Method 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).

Protected Methods

Method 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 method

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

filterAttributeValues() protected method

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
return array

hydrateAddOperation() protected method

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

hydrateModifyOperation() protected method

protected hydrateModifyOperation ( BatchModifyOperation $operation ) : BatchModifyOperation
$operation LdapTools\Operation\BatchModifyOperation
return LdapTools\Operation\BatchModifyOperation

hydrateOperation() protected method

protected hydrateOperation ( LdapTools\Operation\LdapOperationInterface $operation ) : LdapTools\Operation\LdapOperationInterface
$operation LdapTools\Operation\LdapOperationInterface
return LdapTools\Operation\LdapOperationInterface

hydrateQueryOperation() protected method

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

hydrateToLdap() public method

public hydrateToLdap ( $operation, $dn = null )

setAlias() public method

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 method

Set some default parameters based off the connection.
protected setDefaultParameters ( ) : array
return array

setDnToUse() protected method

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
return string

$operation protected_oe property

protected LdapOperationInterface,LdapTools\Operation $operation
return LdapTools\Operation\LdapOperationInterface