src/LdapTools/Hydrator/HydrateQueryTrait.php
protected function getSelectedQueryAttributes(array $attributes, LdapObjectSchema $schema = null)
    {
        // Interpret a single wildcard as only schema attributes.
        if ($schema && !empty($attributes) && $attributes[0] == '*') {
            $attributes = array_keys($schema->getAttributeMap());
        // Interpret a double wildcard as all LDAP attributes even if they aren't in the schema file.
        } elseif ($schema && !empty($attributes) && $attributes[0] == '**') {
            $attributes = ['*'];
        }

        return $attributes;
    }
protected function getSelectedQueryAttributes(array $attributes, LdapObjectSchema $schema = null)
    {
        // Interpret a single wildcard as only schema attributes.
        if ($schema && !empty($attributes) && $attributes[0] == '*') {
            $attributes = array_keys($schema->getAttributeMap());
        // Interpret a double wildcard as all LDAP attributes even if they aren't in the schema file.
        } elseif ($schema && !empty($attributes) && $attributes[0] == '**') {
            $attributes = ['*'];
        }

        return $attributes;
    }
protected function getSelectedQueryAttributes ( array $ attributes , LdapObjectSchema $ schema = null ) { // Interpret a single wildcard as only schema attributes. if ( $ schema && ! empty ( $ attributes ) && $ attributes [ 0 ] == '*' ) { $ attributes = array_keys ( $ schema -> getAttributeMap ( ) ) ; // Interpret a double wildcard as all LDAP attributes even if they aren't in the schema file. } elseif ( $ schema && ! empty ( $ attributes ) && $ attributes [ 0 ] == '**' ) { $ attributes = [ '*' ] ; } return $ attributes ; }
Determine what attributes should be selected. This helps account for all attributes being selected both within
and out of the context of a schema.

@param array $attributes
@param LdapObjectSchema|null $schema
@return 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 .