Ejemplo n.º 1
0
 /**
  * Helper function for converting to an array mapping paths to tag values
  * 
  * @param QuickBooks_XML_Node $node
  * @param string $current
  * @param array $paths
  * @return void
  */
 protected function _asArrayPathsHelper($node, $current, &$paths)
 {
     if ($node->hasChildNodes()) {
         foreach ($node->children() as $child) {
             $this->_asArrayPathsHelper($child, $current . ' ' . $node->name(), $paths);
         }
     } else {
         if ($node->hasData()) {
             $paths[trim($current . ' ' . $node->name())] = $node->data();
         }
     }
 }