function getOMenu($id = false) { $xMen = new cGeneral_menu(); $xMen->setData($xMen->query()->initByID($id)); return $xMen; }
function __construct($id, $datos = false) { $xMen = new cGeneral_menu(); if (is_array($datos)) { $xMen->setData($datos); } else { $xMen->setData($xMen->query()->initByID($id)); } $this->CLAVE = $xMen->idgeneral_menu()->v(); $this->NOTA = $xMen->menu_description()->v(OUT_TXT); $this->TIPO = $xMen->menu_type()->v(); $this->DESTINO = $xMen->menu_destination()->v(OUT_TXT); $this->ARCHIVO = $xMen->menu_file()->v(OUT_TXT); $this->ICON = $xMen->menu_image()->v(OUT_TXT); $this->TITULO = $xMen->menu_title()->v(); $this->PARENT = $xMen->menu_parent()->v(); }