Varien_Db_Tree_NodeSet Class Reference

List of all members.

Public Member Functions

 __construct ()
 addNode (Varien_Db_Tree_Node $node)
 count ()
 valid ()
 next ()
 key ()
 current ()
 rewind ()


Detailed Description

TODO implements iterators

Definition at line 32 of file NodeSet.php.


Constructor & Destructor Documentation

__construct (  ) 

Definition at line 39 of file NodeSet.php.

00039                            {
00040         $this->_nodes = array();
00041         $this->_current = 0;
00042         $this->_currentNode = 0;
00043         $this->count = 0;
00044     }


Member Function Documentation

addNode ( Varien_Db_Tree_Node node  ) 

Definition at line 48 of file NodeSet.php.

00048                                                 {
00049         $this->_nodes[$this->_currentNode] = $node;
00050         $this->count++;
00051         return ++$this->_currentNode;
00052     }

count (  ) 

Definition at line 54 of file NodeSet.php.

00054                      {
00055         return $this->count;
00056     }

current (  ) 

Definition at line 76 of file NodeSet.php.

00076                        {
00077         return $this->_nodes[$this->_current];
00078     }

key (  ) 

Definition at line 71 of file NodeSet.php.

00071                    {
00072         return $this->_current;
00073     }

next (  ) 

Definition at line 63 of file NodeSet.php.

00063                     {
00064         if ($this->_current > $this->_currentNode) {
00065             return false;
00066         } else {
00067             return  $this->_current++;
00068         }
00069     }

rewind (  ) 

Definition at line 80 of file NodeSet.php.

00080                       {
00081         $this->_current = 0;
00082     }

valid (  ) 

Definition at line 59 of file NodeSet.php.

00059                      {
00060         return  isset($this->_nodes[$this->_current]);
00061     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:25:01 2009 for Magento by  doxygen 1.5.8