var $tabla;
var $nombre;
var $id;
+ var $id_activo;
var $link = '';
var $link_append = '';
var $where = '';
$this->tabla = $dbdata['tabla'];
$this->nombre = $dbdata['nombre'];
$this->id = $dbdata['id'];
+ $this->id_activo = @$dbdata['id_activo'];
// FIXME - Deprecated!
if(isset($dbdata['prepend_link']))
$link_append = $dbdata['prepend_link'];
if(!$this->padre) $sub = array();
else $sub = $this->BuscarHijos($id);
$link = strval(@$row[2]);
- $dat[] = array(
+ $d = array(
'titulo'=> $titulo,
'link' => $link,
'id' => $id,
'sub' => $sub
);
+ if (!is_null($this->id_activo) and $id == $this->id_activo) {
+ $d['activo'] = 1;
+ }
+ $dat[] = $d;
}
return $dat;