X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/d374755a39b0fc94d14a25590acea0a3f5ce6633..63672c6556e5f9fd83c9621bf2964b2f00612843:/lib/MECON/NovedadesDia.php?ds=sidebyside diff --git a/lib/MECON/NovedadesDia.php b/lib/MECON/NovedadesDia.php index ca6c66d..b7a1d7d 100644 --- a/lib/MECON/NovedadesDia.php +++ b/lib/MECON/NovedadesDia.php @@ -28,7 +28,7 @@ require_once 'MECON/Tiempo/Hora.php'; * @version $Rev: 380 $ * @author Gonzalo Merayo */ -class NovedadesDia { +class MECON_NovedadesDia { var $novedades = array(); @@ -39,14 +39,14 @@ class NovedadesDia { var $_db = null; - function NovedadesDia($agente, $fecha) { + function MECON_NovedadesDia($agente, $fecha) { #validar el tipo de $fecha $this->agente = $agente; $this->fecha = $fecha; #Ver de donde sacar esto bonito... - $dsn = "mysql://intranet:intranet@localhost/novedades"; + $dsn = "mysql://intranet:intranet@intranet-db.mecon.ar/novedades"; $this->_db = DB::connect( $dsn , true); if(DB::isError($this->_db)) die($this->_db->getMessage()); @@ -58,8 +58,8 @@ class NovedadesDia { } function deLicencia() { - $licencias = array('Adp','Asa','Fal','Fran','FES/REL','Grem','Interrup','Sus','10a', ->'10a/d','10c','10d','10g','10h','10i','10j','10j/c','13Ia','13Ia/s','13Ia/u','13Ib',->'13Ic','13Id','13Id/a','13Id/h','13Ie','13Ig','13IIa','13IIb','13IIc','13IId', ->'13IIe','1363/97-2','14a','14b','14b1','14b2','14c','14d','14f','14g','14h','15a', ->'15b','15c','9'); - $anti_licencias = ('Interr/13a','Interr/9'); + $licencias = array('Adp','Asa','Fal','Fran','FES/REL','Grem','Interrup','Sus','10a','10a/d','10c','10d','10g','10h','10i','10j','10j/c','13Ia','13Ia/s','13Ia/u','13Ib','13Ic','13Id','13Id/a','13Id/h','13Ie','13Ig','13IIa','13IIb','13IIc','13IId', '13IIe','1363/97-2','14a','14b','14b1','14b2','14c','14d','14f','14g','14h','15a', '15b','15c','9'); + $anti_licencias = array('Interr/13a','Interr/9'); foreach($this->novedades as $nov) { if(in_array($nov->codigo, $anti_licencias)) return false;