Zend\Ldap\Node\ChildrenIterator
Zend\Ldap\Node\ChildrenIterator provides an iterator to a collection of children nodes.
Synopsis
class ChildrenIterator
implements
Iterator,Countable,RecursiveIterator,ArrayAccess
{
- // members
- private array $data;
- // methods
- public ChildrenIterator __construct()
- public int count()
- public Node current()
- public string key()
- public void next()
- public void rewind()
- public bool valid()
- public bool hasChildren()
- public ChildrenIterator getChildren()
- public array|null offsetGet()
- public bool offsetExists()
- public void offsetUnset()
- public void offsetSet()
- public array toArray()
Hierarchy
Implements
Members
private
- $data
—
array
An array of Zend\Ldap\Node objects
Methods
public
- __construct() — Constructor.
- count() — Returns the number of child nodes.
- current() — Return the current child.
- getChildren() — Returns the children for the current node.
- hasChildren() — Checks if current node has children.
- key() — Return the child'd RDN.
- next() — Move forward to next child.
- offsetExists() — Checks whether a given rdn exists.
- offsetGet() — Returns a child with a given RDN.
- offsetSet() — Does nothing.
- offsetUnset() — Does nothing.
- rewind() — Rewind the Iterator to the first child.
- toArray() — Get all children as an array
- valid() — Check if there is a current child after calls to rewind() or next().