PHP Trait LdapTools\Hydrator\HydrateQueryTrait

Author: Chad Sikorra ([email protected])
Datei anzeigen Open project: ldaptools/ldaptools

Protected Methods

Method Description
getAttributesForAlias ( array $attributes, null | string $alias ) : array
getAttributesToLdap ( array $attributes, $translate, LdapObjectSchema $schema = null, null | string $alias = null ) : array Performs the logic needed to determine what attributes were actually selected, or should be selected, when going to LDAP and whether they should be returned as schema translated names.
getSelectedQueryAttributes ( array $attributes, LdapObjectSchema $schema = null ) : array Determine what attributes should be selected. This helps account for all attributes being selected both within and out of the context of a schema.
isWildCardSelection ( ) : boolean A wildcard selection can either be '*' or '**' depending on the context of the call (with or without a schema).
mergeOrderByAttributes ( array $attributes, null | string $alias = null ) : array If any attributes that were requested to be ordered by are not explicitly in the attribute selection, add them.

Method Details

getAttributesForAlias() protected method

protected getAttributesForAlias ( array $attributes, null | string $alias ) : array
$attributes array
$alias null | string
return array

getAttributesToLdap() protected method

Performs the logic needed to determine what attributes were actually selected, or should be selected, when going to LDAP and whether they should be returned as schema translated names.
protected getAttributesToLdap ( array $attributes, $translate, LdapObjectSchema $schema = null, null | string $alias = null ) : array
$attributes array
$schema LdapTools\Schema\LdapObjectSchema
$alias null | string
return array

getSelectedQueryAttributes() protected method

Determine what attributes should be selected. This helps account for all attributes being selected both within and out of the context of a schema.
protected getSelectedQueryAttributes ( array $attributes, LdapObjectSchema $schema = null ) : array
$attributes array
$schema LdapTools\Schema\LdapObjectSchema
return array

isWildCardSelection() protected method

A wildcard selection can either be '*' or '**' depending on the context of the call (with or without a schema).
protected isWildCardSelection ( ) : boolean
return boolean

mergeOrderByAttributes() protected method

If any attributes that were requested to be ordered by are not explicitly in the attribute selection, add them.
protected mergeOrderByAttributes ( array $attributes, null | string $alias = null ) : array
$attributes array
$alias null | string
return array