Implement the recursive tree iterator interface. Now you can do something like:
Implement the recursive tree iterator interface. Now you can do something like:

 $iterator = new RecursiveIteratorIterator($tree);
 foreach ($iterator as $node) {
     echo $node->getIndex();
 }

to visit each tree node.

See http://www.php.net/~helly/php/ext/spl/classRecursiveIteratorIterator.html
for details about the RecursiveIteratorIterator class.


svn commit r2854

silverorange/swat,silverorange/swat