Ldap/Node/ChildrenIterator.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Ldap  
Subpackage
Node  
Version
$Id$  

\Zend_Ldap_Node_ChildrenIterator

Package: Zend_Ldap\Node
Zend_Ldap_Node_ChildrenIterator provides an iterator to a collection of children nodes.
Implements
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprivatearray $_data
An array of Zend_Ldap_Node objects
Details
Type
array

Methods

methodpublic__construct(array $data) : void

Constructor.

Parameters
NameTypeDescription
$dataarray
methodpubliccount() : int

Returns the number of child nodes.

Implements Countable
Returns
TypeDescription
int
methodpubliccurrent() : \Zend_Ldap_Node

Return the current child.

Implements Iterator
Returns
TypeDescription
\Zend_Ldap_Node
methodpublicgetChildren() : \Zend_Ldap_Node_ChildrenIterator

Returns the children for the current node.

Returns
TypeDescription
\Zend_Ldap_Node_ChildrenIterator
methodpublichasChildren() : boolean

Checks if current node has children.

Returns whether the current element has children.
Returns
TypeDescription
boolean
methodpublickey() : string

Return the child'd RDN.

Implements Iterator
Returns
TypeDescription
string
methodpublicnext() : void

Move forward to next child.

Implements Iterator
methodpublicoffsetExists(string $rdn) : boolean

Checks whether a given rdn exists.

Implements ArrayAccess.
Parameters
NameTypeDescription
$rdnstring
Returns
TypeDescription
boolean
methodpublicoffsetGet(string $rdn) : \Zend_Ldap_node

Returns a child with a given RDN.

Implements ArrayAccess.
Parameters
NameTypeDescription
$rdnstring
Returns
TypeDescription
\Zend_Ldap_node
methodpublicoffsetSet(string $name, mixed $value) : null

Does nothing.

Implements ArrayAccess.
Parameters
NameTypeDescription
$namestring
$valuemixed
Returns
TypeDescription
null
methodpublicoffsetUnset(string $name) : null

Does nothing.

Implements ArrayAccess.
Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
null
methodpublicrewind() : void

Rewind the Iterator to the first child.

Implements Iterator
methodpublictoArray() : array

Get all children as an array

Returns
TypeDescription
array
methodpublicvalid() : boolean

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

Implements Iterator
Returns
TypeDescription
boolean
Documentation was generated by phpDocumentor 2.2.0 .