Ejemplo n.º 1
0
 public function getContents()
 {
     $parser = new ZendL_Tool_Project_Structure_Parser_Xml();
     $isTraverseEnabled = ZendL_Tool_Project_Structure_Graph::isTraverseEnabled();
     ZendL_Tool_Project_Structure_Graph::setTraverseEnabled(true);
     $xml = $parser->serialize($this->_graph);
     ZendL_Tool_Project_Structure_Graph::setTraverseEnabled($isTraverseEnabled);
     return $xml;
 }
Ejemplo n.º 2
0
Archivo: Node.php Proyecto: lortnus/zf1
 public function valid()
 {
     if (isset($this->_subNodes[$this->_position]) && ZendL_Tool_Project_Structure_Graph::isTraverseEnabled() == false) {
         while (!$this->_subNodes[$this->_position]->isEnabled()) {
             $this->next();
             if (!isset($this->_subNodes[$this->_position])) {
                 break;
             }
         }
     }
     return isset($this->_subNodes[$this->_position]);
 }