Property | Type | Description | |
---|---|---|---|
$connection | LdapTools\Connection\LdapConnectionInterface | null | ||
$orderBy | The attributes to order by. | ||
$parameters | Default parameter values that have been set. | ||
$schema | |||
$selectedAttributes | The attributes selected for in the query. | ||
$type | The operation type that is requesting this hydration process. |
Method | Description | |
---|---|---|
__construct ( LdapTools\Connection\LdapConnectionInterface $connection = null ) | ||
getLdapObjectSchema ( ) | ||
getParameters ( ) : array | Get the array of additional possible parameters that have been set for the hydrator. | |
getSelectedAttributes ( ) | ||
hydrateAllFromLdap ( array $entries ) | ||
hydrateFromLdap ( array $entry ) | ||
hydrateToLdap ( $attributes ) | ||
setLdapConnection ( LdapTools\Connection\LdapConnectionInterface $connection = null ) | ||
setLdapObjectSchema ( |
||
setOperationType ( $type ) | ||
setOrderBy ( array $orderBy ) | ||
setParameter ( string $name, string $value ) | Sets a parameter that can be used within an attribute value. | |
setSelectedAttributes ( array $attributes ) |
Method | Description | |
---|---|---|
configureValueResolver ( |
Retrieve the AttributeValueResolver instance with the connection and other information set if needed. | |
convertNamesFromLdap ( array $entry ) : array | Replace the LDAP attribute names with the schema names if there is a schema present. | |
convertNamesToLdap ( array $attributes ) : array | Converts attribute names from their schema defined value to the value LDAP needs them in. | |
convertValuesFromLdap ( array $entry ) : array | Replace attribute values with the converted values if the attribute has a converter defined. | |
convertValuesToLdap ( array | |
Checks for attributes assigned an attribute converter. It will replace the value with the converted value then send back all the attributes. | |
mergeDefaultAttributes ( array $attributes ) : array | Returns all of the attributes to be sent to LDAP after factoring in possible default schema values. | |
resolveParameters ( array $attributes ) : array | Resolves all parameters within an array of attributes. | |
setAttributeFromLdap ( array $entry, string $attribute, string | array $value ) : array | Given a specific attribute and value add it to the newly formed LDAP entry array. | |
validateAttributesToLdap ( array $attributes ) | Checks to make sure all required attributes are present. |
public __construct ( LdapTools\Connection\LdapConnectionInterface $connection = null ) | ||
$connection | LdapTools\Connection\LdapConnectionInterface |
protected configureValueResolver ( |
||
$valueResolver | ||
$dn | null | string |
protected convertNamesFromLdap ( array $entry ) : array | ||
$entry | array | |
return | array |
protected convertNamesToLdap ( array $attributes ) : array | ||
$attributes | array | |
return | array |
protected convertValuesFromLdap ( array $entry ) : array | ||
$entry | array | |
return | array |
protected convertValuesToLdap ( array | |
||
$values | array | |
|
$dn | string | null | |
return | array | |
public getParameters ( ) : array | ||
return | array |
protected mergeDefaultAttributes ( array $attributes ) : array | ||
$attributes | array | |
return | array |
protected resolveParameters ( array $attributes ) : array | ||
$attributes | array | |
return | array |
public setLdapConnection ( LdapTools\Connection\LdapConnectionInterface $connection = null ) | ||
$connection | LdapTools\Connection\LdapConnectionInterface |
public setLdapObjectSchema ( |
||
$schema |
public setParameter ( string $name, string $value ) | ||
$name | string | |
$value | string |
public setSelectedAttributes ( array $attributes ) | ||
$attributes | array |
protected validateAttributesToLdap ( array $attributes ) | ||
$attributes | array |
protected LdapConnectionInterface,LdapTools\Connection|null $connection | ||
return | LdapTools\Connection\LdapConnectionInterface | null |
protected LdapObjectSchema,LdapTools\Schema $schema | ||
return |
protected $selectedAttributes |