+ var $padre = '';
+ var $tabla;
+ var $nombre;
+ var $id;
+ var $link = '';
+ var $link_append = '';
+ var $where = '';
+ var $order = '';
+ var $db;
+
+ function HTML_ArbolDB($dbdata, $titulo, $link_append = '')
+ {
+ if(isset($dbdata['id_padre']))
+ $this->padre = $dbdata['id_padre'];
+ $this->tabla = $dbdata['tabla'];
+ $this->nombre = $dbdata['nombre'];
+ $this->id = $dbdata['id'];
+ // FIXME - Deprecated!
+ if(isset($dbdata['prepend_link']))
+ $link_append = $dbdata['prepend_link'];
+ if(isset($dbdata['link']))
+ $this->link = $dbdata['link'];
+ if(isset($dbdata['where']))
+ $this->where = $dbdata['where'];
+ if(isset($dbdata['order']))
+ $this->order = ' ORDER BY '.$dbdata['nombre'].' '.$dbdata['order'];
+ $this->db = $dbdata['db'];
+ parent::HTML_Arbol(array(), $titulo, $link_append);
+ $this->datos = $this->BuscarHijos(0);
+ }
+
+ function BuscarHijos($id)