Esempio n. 1
0
 function evt__abrir()
 {
     $archivo_php = new toba_archivo_php($this->get_path_archivo());
     if (!$archivo_php->existe()) {
         throw new toba_error('Se solicito la apertura de un archivo inexistente (\'' . $archivo_php->nombre() . '\').');
     }
     $archivo_php->abrir();
 }
Esempio n. 2
0
 function ajax__existe_metodo_dt($dt, toba_ajax_respuesta $respuesta)
 {
     $subclase = toba_info_editores::get_subclase_componente($dt);
     if (isset($subclase) && !empty($subclase)) {
         $archivo = toba::instancia()->get_path_proyecto(toba_contexto_info::get_proyecto()) . '/php/' . $subclase['subclase_archivo'];
         $php = new toba_archivo_php($archivo);
         if ($php->existe() && $php->contiene_metodo('get_descripciones')) {
             $sql = $this->get_sql_carga_tabla($dt);
             $respuesta->set($sql);
         } else {
             $respuesta->set(false);
         }
     } else {
         $respuesta->set(false);
     }
 }