Ejemplo n.º 1
0
 public function next()
 {
     if ($this->valid()) {
         if (Net::DIRECT == $this->_needToChangeDirection()) {
             Net::incrementIteration();
             if (Net::shouldReloadValues()) {
                 if (Net::isDebugEnabled()) {
                     var_dump("<h1>Reloading</h1>");
                 }
                 $this->reloadValues();
                 //reload values
             }
         } elseif (Net::REVERSE == $this->_needToChangeDirection()) {
             Net::setDirection(Net::REVERSE);
             //set reverse direction
         }
         $this->_level += Net::getLayoutCounter();
         //go to next layout
     }
 }