Object encapsulation of the resource(ldap result) native object

package Ldap-Core

 Methods

Create a new instance

__construct(\Dreamscapes\Ldap\Core\Ldap $link, resource $result) 

Parameters

$link

\Dreamscapes\Ldap\Core\Ldap

$result

resource

Count the number of entries in a search

countEntries() : integer

Returns

integerNumber of entries in the result

Free result memory

freeResult() : void

Once the result is freed from memory the instance holding the result must not be used any further. This method is called automatically when the instance is released from memory.

Get all result entries

getEntries() : array

Returns

arrayComplete result information in a multi-dimensional array

Retrieve the LDAP pagination cookie

pagedResultResponse() : array

Returns

arrayArray with two keys: 'cookie' and 'estimated'

Extract information about referrals (if returned by server)

parseReference() : array

Returns

array

Sort LDAP result entries

sort(string $by) : \Dreamscapes\Ldap\Core\ResultResource
fluent This method is part of a fluent interface and will return the same instance

Parameters

$by

string

The attribute to use as a key in the sort

Returns

\Dreamscapes\Ldap\Core\ResultResource