class Entry

Methods

__construct($dn, array $attributes = [])

No description

string
getDn()

Returns the entry's DN.

bool
hasAttribute(string $name)

Returns whether an attribute exists.

array|null
getAttribute(string $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

at line 22
__construct($dn, array $attributes = [])

Parameters

$dn
array $attributes

at line 33
string getDn()

Returns the entry's DN.

Return Value

string

at line 45
bool hasAttribute(string $name)

Returns whether an attribute exists.

Parameters

string $name The name of the attribute

Return Value

bool

at line 60
array|null getAttribute(string $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

string $name The name of the attribute

Return Value

array|null

at line 70
array getAttributes()

Returns the complete list of attributes.

Return Value

array

at line 81
setAttribute(string $name, array $value)

Sets a value for the given attribute.

Parameters

string $name
array $value

at line 91
removeAttribute(string $name)

Removes a given attribute.

Parameters

string $name