Beispiel #1
0
 public function getNext($name = null)
 {
     $children = $this->_parent->getChildren();
     $length = count($children);
     if ($this->_position == $length - 1) {
         return null;
     }
     if (is_null($name)) {
         return $this->_parent->getChild($this->_position + 1);
     }
     $name = $this->_getCleanName($name);
     for ($i = $this->_position + 1; $i < $length; $i++) {
         if ($children[$i] instanceof AeInterface_Xml_Element && $children[$i]->getName() == $name) {
             return $children[$i];
         }
     }
     return null;
 }