class Entry
Methods
__construct($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($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.
As LDAP can return multiple values for a single attribute, this value is returned as an array.
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.
Please login to continue.