original_string: public function getNodes()
      {
          $nodes = array();
          foreach ($this->nodes[$this->options['rootid']]->getDescendants() as $subnode) {
              $nodes[] = $subnode;
          }
          return $nodes;
      }
code: public function getNodes()
      {
          $nodes = array();
          foreach ($this->nodes[$this->options['rootid']]->getDescendants() as $subnode) {
              $nodes[] = $subnode;
          }
          return $nodes;
      }
code_tokens: public function getNodes ( ) { $ nodes = array ( ) ; foreach ( $ this -> nodes [ $ this -> options [ 'rootid' ] ] -> getDescendants ( ) as $ subnode ) { $ nodes [ ] = $ subnode ; } return $ nodes ; }
docstring: Returns a flat, sorted array of all node objects in the tree.
  
  @return Node[] Nodes, sorted as if the tree was hierarchical,
  i.e.: the first level 1 item, then the children of
  the first level 1 item (and their children), then
  the second level 1 item and so on.
docstring_tokens: Returns a flat sorted array of all node objects in the tree .