|
@@ -19,6 +19,7 @@ class ParserFile
|
19
|
19
|
$this->CI = &get_instance();
|
20
|
20
|
$this->CI->load->helper('file');
|
21
|
21
|
$this->CI->load->library('parserdatabasebruto');
|
|
22
|
+ $this->CI->load->library('parserdatabaselimpio');
|
22
|
23
|
}
|
23
|
24
|
|
24
|
25
|
public function index($rutaDiariaDownloader, $fechaInicioParser, $datosPerfil)
|
|
@@ -28,9 +29,8 @@ class ParserFile
|
28
|
29
|
|
29
|
30
|
guardar_log("setLicitacion__" . $datosPerfil->prefijos_tablas . "__" . $fechaInicioParser, "----------------------------------", false);
|
30
|
31
|
|
31
|
|
- $resultEntries = array();
|
32
|
32
|
foreach ($files as $file) {
|
33
|
|
-
|
|
33
|
+ $resultEntries = array();
|
34
|
34
|
$entrada = file_get_contents($file);
|
35
|
35
|
$xml = simplexml_load_string($entrada);
|
36
|
36
|
$filename = basename($file);
|
|
@@ -69,13 +69,15 @@ class ParserFile
|
69
|
69
|
$aux++;
|
70
|
70
|
}
|
71
|
71
|
|
|
72
|
+ $this->CI->parserdatabasebruto->setDatosParser($resultEntries, $fechaInicioParser, $datosPerfil);
|
|
73
|
+
|
|
74
|
+ $this->CI->parserdatabaselimpio->index();
|
|
75
|
+
|
72
|
76
|
//$str = print_r($resultEntries, true);
|
73
|
77
|
|
74
|
78
|
//file_put_contents($this->rutaDiaria . "/text_" . $filename . ".txt", $str);
|
75
|
79
|
}
|
76
|
80
|
|
77
|
|
- $this->CI->parserdatabasebruto->setDatosParser($resultEntries, $fechaInicioParser, $datosPerfil);
|
78
|
|
-
|
79
|
81
|
return;
|
80
|
82
|
}
|
81
|
83
|
|