Viewing file: ci_simulacion.php (1.3 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php class ci_simulacion extends toba_ci { protected $s__datos; function ini() { $zona = toba::solicitud()->zona(); if ($editable = $zona->get_editable()) { $componente['proyecto'] = $editable[0]; $componente['componente'] = $editable[1]; } else { throw new toba_error('Este item se utiliza desde la zona de objetos'); } toba_editor::iniciar_contexto_proyecto_cargado(); $this->agregar_dependencia('componente', $componente['proyecto'], $componente['componente']); }
function conf() { $this->pantalla()->agregar_dep('componente'); } function conf__componente($obj) { if ($obj instanceof toba_ei_formulario) { $this->configurar_form($obj); } elseif ($obj instanceof toba_ei_cuadro) { $this->configurar_cuadro($obj); } else { throw new toba_error('No es posible previsualizar el componente seleccionado.'); } } function configurar_form($obj) { } function configurar_cuadro($obj) { $columnas = $obj->get_columnas(); $estructura = $obj->get_estructura_datos(); $muestra = array(); foreach ($columnas as $id => $columna) { $muestra[$id] = $id; } foreach ($estructura as $columna) { $muestra[$columna] = $columna; } $obj->set_datos(array($muestra)); } // Para manejar DAOS function __call($metodo, $parametros) { return array(); }
} ?>
|