Zend Framework  1.12
Public Member Functions | List of all members
Zend_Ldap_Node_ChildrenIterator Class Reference

Public Member Functions

 __construct (array $data)
 Constructor.
 
 count ()
 Returns the number of child nodes.
 
 current ()
 Return the current child.
 
 key ()
 Return the child'd RDN.
 
 next ()
 Move forward to next child.
 
 rewind ()
 Rewind the Iterator to the first child.
 
 valid ()
 Check if there is a current child after calls to rewind() or next().
 
 hasChildren ()
 Checks if current node has children.
 
 getChildren ()
 Returns the children for the current node.
 
 offsetGet ($rdn)
 Returns a child with a given RDN.
 
 offsetExists ($rdn)
 Checks whether a given rdn exists.
 
 offsetUnset ($name)
 Does nothing.
 
 offsetSet ($name, $value)
 Does nothing.
 
 toArray ()
 Get all children as an array.
 

Constructor & Destructor Documentation

__construct ( array  $data)

Constructor.

Parameters
array$data
Returns
void

Member Function Documentation

count ( )

Returns the number of child nodes.

Implements Countable

Returns
int
current ( )

Return the current child.

Implements Iterator

Returns
Zend_Ldap_Node
getChildren ( )

Returns the children for the current node.

Returns
Zend_Ldap_Node_ChildrenIterator
hasChildren ( )

Checks if current node has children.

Returns whether the current element has children.

Returns
boolean
key ( )

Return the child'd RDN.

Implements Iterator

Returns
string
next ( )

Move forward to next child.

Implements Iterator

offsetExists (   $rdn)

Checks whether a given rdn exists.

Implements ArrayAccess.

Parameters
string$rdn
Returns
boolean
offsetGet (   $rdn)

Returns a child with a given RDN.

Implements ArrayAccess.

Parameters
string$rdn
Returns
Zend_Ldap_node
offsetSet (   $name,
  $value 
)

Does nothing.

Implements ArrayAccess.

Parameters
string$name
mixed$value
Returns
null
offsetUnset (   $name)

Does nothing.

Implements ArrayAccess.

Parameters
string$name
Returns
null
rewind ( )

Rewind the Iterator to the first child.

Implements Iterator

toArray ( )

Get all children as an array.

Returns
array
valid ( )

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

Implements Iterator

Returns
boolean