1259. Class

1259.1. Zend\Ldap\Node\ChildrenIterator

ZendLdapNodeChildrenIterator provides an iterator to a collection of children nodes.

1259.1.1. Methods

1259.1.1.1. __construct

__construct()

Constructor.

Parameters:array
Return type:ZendLdapNodeChildrenIterator

1259.1.1.2. count

count()

Returns the number of child nodes. Implements Countable

Return type:int

1259.1.1.3. current

current()

Return the current child. Implements Iterator

Return type:ZendLdapNode

1259.1.1.4. key

key()

Return the child’d RDN. Implements Iterator

Return type:string

1259.1.1.6. rewind

rewind()

Rewind the Iterator to the first child. Implements Iterator

1259.1.1.7. valid

valid()

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

Return type:bool

1259.1.1.8. hasChildren

hasChildren()

Checks if current node has children. Returns whether the current element has children.

Return type:bool

1259.1.1.9. getChildren

getChildren()

Returns the children for the current node.

Return type:ChildrenIterator

1259.1.1.10. offsetGet

offsetGet()

Returns a child with a given RDN. Implements ArrayAccess.

Parameters:string
Return type:array|null

1259.1.1.11. offsetExists

offsetExists()

Checks whether a given rdn exists. Implements ArrayAccess.

Parameters:string
Return type:bool

1259.1.1.12. offsetUnset

offsetUnset()

Does nothing. Implements ArrayAccess.

Parameters:$name

1259.1.1.13. offsetSet

offsetSet()

Does nothing. Implements ArrayAccess.

Parameters:
  • string
  • $value

1259.1.1.14. toArray

toArray()

Get all children as an array

Return type:array