rcube_ldap_result

Implements \Iterator

Model class representing an LDAP search result

package

Framework

subpackage

LDAP

Methods

Default constructor

__construct(resource $conn, resource $ldap, string $base_dn, string $filter, integer $count = null) 

Arguments

$conn

resource

LDAP link identifier

$ldap

resource

LDAP result entry identifier

$base_dn

string

Base DN used to get this result

$filter

string

Filter query used to get this result

$count

integer

Record count value (pre-calculated)

Wrapper for ldap_sort()

sort($attr) 

Arguments

$attr

Get entries count

count() 

Wrapper for ldap_get_entries()

entries(boolean $normalize = false) : array

Arguments

$normalize

boolean

Optionally normalize the entries to a list of hash arrays

Response

array

List of LDAP entries

Wrapper for ldap_get_dn() using the current entry pointer

get_dn() 

current

current() 

key

key() 

rewind

rewind() 

next

next() 

valid

valid() 

Properties

conn

conn : 

ldap

ldap : 

base_dn

base_dn : 

filter

filter : 

count

count : 

current

current : 

iteratorkey

iteratorkey :