Example #1
0
 function vista_jasperreports(toba_vista_jasperreports $report)
 {
     $path = toba::memoria()->get_parametro('path');
     if (!isset($path) || !is_numeric($path) || !isset($this->s__paths[$path])) {
         throw new toba_error_def("ParĂ¡metro no definido");
     }
     $report->set_path_reporte($this->s__paths[$path]);
     $db = toba::instancia()->get_db();
     $report->set_conexion($db);
 }
Example #2
0
 protected function servicio__vista_jasperreports($objetos)
 {
     $salida = new toba_vista_jasperreports();
     $salida->asignar_objetos($objetos);
     $salida->generar_salida();
     $salida->enviar_archivo();
 }