Example #1
0
 /**
  * (PHP 5 &gt;= 5.0.0)<br/>
  * Move forward to next element
  * @link http://php.net/manual/en/iterator.next.php
  * @return void Any returned value is ignored.
  */
 public function next()
 {
     $aNodes = $this->_oCurrent->getChilds();
     foreach ($aNodes as $oNode) {
         array_push($this->_aStack, $oNode);
     }
     $this->_oCurrent = array_pop($this->_aStack);
 }