class Entry
__construct(string $dn, array $attributes = array()) | ||
string | getDn() Returns the entry's DN. | |
bool | hasAttribute($name) Returns whether an attribute exists. | |
array|null | getAttribute($name) Returns a specific attribute's value. | |
array | getAttributes() Returns the complete list of attributes. | |
setAttribute(string $name, array $value) Sets a value for the given attribute. | ||
removeAttribute(string $name) Removes a given attribute. |
string | $dn | |
array | $attributes |
Returns the entry's DN.
string |
Returns whether an attribute exists.
$name | string The name of the attribute |
bool |
Returns a specific attribute's value.
As LDAP can return multiple values for a single attribute, this value is returned as an array.
$name | string The name of the attribute |
array|null |
Returns the complete list of attributes.
array |
Sets a value for the given attribute.
string | $name | |
array | $value |
Removes a given attribute.
string | $name |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Ldap/Entry.html