Zend_Ldap_Node_ChildrenIterator provides an iterator to a collection of children nodes.

category Zend
package Zend_Ldap
subpackage Node
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Constructor.

__construct(array $data) : void

Parameters

$data

array

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) : \Zend_Ldap_node

Implements ArrayAccess.

Parameters

$rdn

string

Returns

\Zend_Ldap_node

Does nothing.

offsetSet(string $name, mixed $value) : null

Implements ArrayAccess.

Parameters

$name

string

$value

mixed

Returns

null

Does nothing.

offsetUnset(string $name) : null

Implements ArrayAccess.

Parameters

$name

string

Returns

null

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