Zend\Ldap\Node\Collection provides a collection of nodes.

package Default
inherited_from \Zend\Ldap\Collection

 Methods

Constructor.

__construct(\Zend\Ldap\Collection\DefaultIterator $iterator) 
Inherited

Parameters

$iterator

\Zend\Ldap\Collection\DefaultIterator

__destruct()

__destruct() 
Inherited

Closes the current result set

close() : boolean
Inherited

Returns

boolean

Returns the number of items in current result Implements Countable

count() : integer
Inherited

Returns

integer

Return the current result item Implements Iterator

current() : array | null
Inherited

Exceptions

\Zend\Ldap\Exception\LdapException

Returns

arraynull

Return the current result item DN

dn() : string | null
Inherited

Returns

stringnull

Get first entry

getFirst() : array
Inherited

Returns

array

Returns the underlying iterator

getInnerIterator() : \Zend\Ldap\Collection\DefaultIterator
Inherited

Returns

\Zend\Ldap\Collection\DefaultIterator

Return the child key (DN).

key() : string

Implements Iterator and RecursiveIterator

inherited_from \Zend\Ldap\Collection::key()

Returns

string

Return the current result item key Implements Iterator

key() : integer | null
Inherited

Returns

integernull

Move forward to next result item Implements Iterator

next() 
Inherited

Exceptions

\Zend\Ldap\Exception\LdapException

Rewind the Iterator to the first result item Implements Iterator

rewind() 
Inherited

Exceptions

\Zend\Ldap\Exception\LdapException

Get all entries as an array

toArray() : array
Inherited

Returns

array

Check if there is a current result item after calls to rewind() or next() Implements Iterator

valid() : boolean
Inherited

Returns

boolean

Creates the data structure for the given entry data

createEntry(array $data) : \Zend\Ldap\Node
inherited_from \Zend\Ldap\Collection::createEntry()

Parameters

$data

array

Returns

\Zend\Ldap\Node

Creates the data structure for the given entry data

createEntry(array $data) : array
Inherited

Parameters

$data

array

Returns

array

 Properties

 

Container for item caching to speed up multiple iterations

$cache : array

Default

array()
 

Current item number

$current : integer

Default

-1
 

Iterator

$iterator : \Zend\Ldap\Collection\DefaultIterator

Default

null