Zend\Ldap\Node\ChildrenIterator provides an iterator to a collection of children nodes.

 Methods

Constructor.

__construct(array $data) : \Zend\Ldap\Node\ChildrenIterator

Parameters

$data

array

Returns

Returns the number of child nodes.

count() : int

Implements Countable

Returns

int

Return the current child.

current() : \Zend\Ldap\Node

Implements Iterator

Returns

Returns the children for the current node.

getChildren() : \Zend\Ldap\Node\ChildrenIterator

Checks if current node has children.

hasChildren() : bool

Returns whether the current element has children.

Returns

bool

Return the child'd RDN.

key() : string

Implements Iterator

Returns

string

Checks whether a given rdn exists.

offsetExists(string $rdn) : bool

Implements ArrayAccess.

Parameters

$rdn

string

Returns

bool

Returns a child with a given RDN.

offsetGet(string $rdn) : array | null

Implements ArrayAccess.

Parameters

$rdn

string

Returns

arraynull

Does nothing.

offsetSet(string $name, $value) 

Implements ArrayAccess.

Parameters

$name

string

$value

Does nothing.

offsetUnset($name) 

Implements ArrayAccess.

Parameters

$name

Rewind the Iterator to the first child.

rewind() 

Implements Iterator

Get all children as an array

toArray() : array

Returns

array

Check if there is a current child after calls to rewind() or next().

valid() : bool

Implements Iterator

Returns

bool

 Properties

 

An array of Zend\Ldap\Node objects

$data : array