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