Property | Type | Description | |
---|---|---|---|
$schema | |||
$selectedAttributes | The attribute names in the exact form they were selected for. |
Method | Description | |
---|---|---|
__construct ( |
||
fromLdap ( array $entry, array $selectedAttributes ) : array | Transform the LDAP attribute names into what is expected given the current context (schema or not). | |
toLdap ( array $entry ) : array | Convert values to LDAP. |
Method | Description | |
---|---|---|
addDnFromLdapIfNotPresent ( array $newEntry, array $entry ) : array | The DN attribute is returned by PHP on all LDAP search operations, regardless of selected attributes, and is used in many functions. So add it to the results even if it wasn't selected for. | |
getSelectedAttributes ( array $selected, array $entry ) : array | Determine what attributes should be selected. This accounts for a query wanting all attributes. | |
selectedButNotPartOfEntry ( string $attribute, array $entry ) : boolean | Check whether the attribute name was selected to be returned but is not yet part of the entry. Adjusts the check to be case insensitive. | |
setMappedNames ( array $newEntry, string $attribute, array | string $value ) : mixed | Set all the names mapped to a single attribute from LDAP. This helps account for multiple mappings used for different purposes. |
public __construct ( |
||
$schema |
protected LdapObjectSchema,LdapTools\Schema|null $schema | ||
return |