Example #1
0
 function __construct($nombre, $padre, $id, $proyecto, $item, $restriccion, $estado_original)
 {
     parent::__construct($nombre, $padre);
     $this->proyecto = $proyecto;
     $this->nombre_largo = $this->nombre_corto;
     $this->id = $item . '_' . $id;
     $this->restriccion = $restriccion;
     $this->item = $item;
     $this->no_visible_original = $estado_original != '' ? true : false;
     $this->no_visible_actual = $this->no_visible_original;
     if ($this->no_visible_original) {
         $this->marcar_abiertos();
     }
 }
Example #2
0
 function __construct($restriccion, $item, $datos, $padre = null, $id = null)
 {
     $this->no_visible_original = $datos['no_visible'] != '' ? true : false;
     $this->no_visible_actual = $this->no_visible_original;
     $this->pantalla = $datos['pantalla'];
     $this->proyecto = $datos['proyecto'];
     $this->restriccion = $restriccion;
     $this->ci = $datos['objeto_ci'];
     $this->nombre_largo = $datos['etiqueta'];
     $this->imagen = $datos['imagen'];
     $this->imagen_origen = $datos['imagen_recurso_origen'];
     $this->item = $item;
     parent::__construct($datos['etiqueta'], $padre, $id);
     if ($this->no_visible_original) {
         $this->marcar_abiertos();
     }
     $this->get_imagen();
 }
Example #3
0
 function __construct($restriccion, $proyecto, $item, $componente, $padre)
 {
     $this->restriccion = $restriccion;
     $this->proyecto = $proyecto;
     $this->item = $item;
     $this->componente = $componente;
     $datos = $this->cargar_datos();
     parent::__construct($datos['nombre'], $padre, $this->item . '-' . $this->componente);
     if (!isset($datos['descripcion'])) {
         $this->nombre_largo = $this->nombre_corto;
     } else {
         $this->nombre_largo = $datos['descripcion'];
     }
     $this->no_visible_original = $datos['no_visible'] != '' ? true : false;
     $this->no_visible_actual = $this->no_visible_original;
     $icono = array('imagen' => toba_recurso::imagen_toba($datos['icono'], false), 'ayuda' => "Componente");
     $this->agregar_icono($icono);
     if ($datos['eventos'] > 0) {
         $this->cargar_eventos();
     }
     if ($this->no_visible_original) {
         $this->marcar_abiertos();
     }
 }
Example #4
0
 function get_id()
 {
     return 'item_' . parent::get_id();
 }
Example #5
0
 function __construct($nombre, $padre)
 {
     parent::__construct($nombre, $padre);
     $this->id = uniqid();
 }