[Alba-desarrollo] SVN Alba r5264 - prosistem/alba/trunk/alba/apps/principal/modules/informes/actions

commits en pressenter.com.ar commits en pressenter.com.ar
Mie Oct 24 22:04:02 CEST 2007


Author: josx
Date: 2007-10-24 17:04:02 -0300 (Wed, 24 Oct 2007)
New Revision: 5264

Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/informes/actions/acti=
ons.class.php
Log:
Primer paso para levantar del template de OO las variables de TinyButStro=
ng

Modified: prosistem/alba/trunk/alba/apps/principal/modules/informes/actio=
ns/actions.class.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/informes/actions/act=
ions.class.php	2007-10-24 19:58:18 UTC (rev 5263)
+++ prosistem/alba/trunk/alba/apps/principal/modules/informes/actions/act=
ions.class.php	2007-10-24 20:04:02 UTC (rev 5264)
@@ -437,10 +437,13 @@
         $OOo->NewDocFromTpl(sfConfig::get('sf_informe_dir').'/'.$archivo=
);
         $OOo->LoadXmlFromDoc('content.xml');
=20
+        // Saco del template todas las variables del tipo [sssss.rrrrr] =
y adem=C3=A1s=20
+        // evitando las variables del tbs con ;
+        preg_match_all("/\[([^];]*\.[^];]*)\]/", $OOo->Source, $tplVars)=
;
+
         if(is_array($aDato)) {
             foreach($aDato as $idx =3D> $dato) {
                 $OOo->MergeField($idx, $dato);
-//         $OOo->MergeField($tipoinforme, $datos);
             }
         }
=20


--=20
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que est=E1 limpio.
For all your IT requirements visit: http://www.transtec.co.uk




Más información sobre la lista de distribución Alba-desarrollo