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

package Default

 Methods

Constructor.

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

Parameters

$data

array

Returns

\Zend\Ldap\Node\ChildrenIterator

Returns the number of child nodes.

count() : integer

Implements Countable

Returns

integer

Return the current child.

current() : \Zend\Ldap\Node

Implements Iterator

Returns

\Zend\Ldap\Node

Returns the children for the current node.

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

Returns

\Zend\Ldap\Node\ChildrenIterator

Checks if current node has children.

hasChildren() : boolean

Returns whether the current element has children.

Returns

boolean

Return the child'd RDN.

key() : string

Implements Iterator

Returns

string

Move forward to next child.

next() 

Implements Iterator

Checks whether a given rdn exists.

offsetExists(string $rdn) : boolean

Implements ArrayAccess.

Parameters

$rdn

string

Returns

boolean

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() : boolean

Implements Iterator

Returns

boolean

 Properties

 

An array of Zend\Ldap\Node objects

$data : array

Default