+
+ if($expandir)
+ {
+ $this->expandir = array($this->id_activo);
+ if(isset($this->id_activo))
+ {
+ $id = $this->id_activo;
+ while($id != 0)
+ {
+ $sql = "SELECT $this->padre
+ FROM $this->tabla
+ WHERE $this->id = '".$id."'";
+ $id = $this->db->getOne($sql);
+ $this->expandir[] = $id;
+ }
+ }
+ }
+