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

category Zend
package Zend_Ldap
subpackage Node

 Methods

Constructor.

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

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

Parameters

__destruct()

__destruct() 
Inherited

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

Closes the current result set

close() : bool
Inherited

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

Returns

bool

Returns the number of items in current result Implements Countable

count() : int
Inherited

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

Returns

int

Return the current result item Implements Iterator

current() : array | null
Inherited

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

Exceptions

\Zend\Ldap\Exception\LdapException

Returns

arraynull

Return the current result item DN

dn() : string | null
Inherited

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

Returns

stringnull

Get first entry

getFirst() : array
Inherited

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

Returns

array

Returns the underlying iterator

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

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

Returns

Return the child key (DN).

key() : string

Implements Iterator and RecursiveIterator

Returns

string

Rewind the Iterator to the first result item Implements Iterator

rewind() 
Inherited

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

Exceptions

\Zend\Ldap\Exception\LdapException

Get all entries as an array

toArray() : array
Inherited

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

Returns

array

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

valid() : bool
Inherited

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

Returns

bool

Creates the data structure for the given entry data

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

Parameters

$data

array

Returns

 Properties

 

Container for item caching to speed up multiple iterations

$cache : array
Inherited

inherited_from \Zend\Ldap\Collection::$$cache
 

Current item number

$current : integer
Inherited

inherited_from \Zend\Ldap\Collection::$$current
 

Iterator

$iterator : \Zend\Ldap\Collection\DefaultIterator
Inherited

inherited_from \Zend\Ldap\Collection::$$iterator