|
|
|
|
29
|
$this->CI->load->library('Parserdatabaselimpio');
|
29
|
$this->CI->load->library('Parserdatabaselimpio');
|
30
|
}
|
30
|
}
|
31
|
|
31
|
|
32
|
- public function __destruct()
|
|
|
33
|
- {
|
|
|
34
|
- }
|
|
|
|
|
32
|
+ public function __destruct() {}
|
35
|
|
33
|
|
36
|
public function index($rutaDiariaDownloader, $fechaInicioParser, $datosPerfil, $idUltimaImportacion)
|
34
|
public function index($rutaDiariaDownloader, $fechaInicioParser, $datosPerfil, $idUltimaImportacion)
|
37
|
{
|
35
|
{
|
|
|
|
|
464
|
|
462
|
|
465
|
$resultEntries['tenderingTerm']['requiredCurriculaIndicator'] = $this->existNodo($TenderingTerms, 'RequiredCurriculaIndicator', 'string');
|
463
|
$resultEntries['tenderingTerm']['requiredCurriculaIndicator'] = $this->existNodo($TenderingTerms, 'RequiredCurriculaIndicator', 'string');
|
466
|
$resultEntries['tenderingTerm']['variantConstraintIndicator'] = $this->existNodo($TenderingTerms, 'VariantConstraintIndicator', 'string');
|
464
|
$resultEntries['tenderingTerm']['variantConstraintIndicator'] = $this->existNodo($TenderingTerms, 'VariantConstraintIndicator', 'string');
|
467
|
- $resultEntries['tenderingTerm']['fundingProgramCode'] = $this->existNodo($TenderingTerms, 'FundingProgramCode', 'string');
|
|
|
|
|
465
|
+
|
|
|
466
|
+ $tendererAwardingTerms = $TenderingTerms['FundingProgramCode'];
|
|
|
467
|
+ if (is_array($tendererAwardingTerms)) {
|
|
|
468
|
+ if (array_key_first($tendererAwardingTerms) !== 0) {
|
|
|
469
|
+ $tendererAwardingTerms = array(0 => $tendererAwardingTerms);
|
|
|
470
|
+ }
|
|
|
471
|
+ $resultEntries["tenderingTerm"]['fundingProgramCode'] = $tendererAwardingTerms[0];
|
|
|
472
|
+ $resultEntries["tenderingTerm"]['fundingProgramCode2'] = $tendererAwardingTerms[1];
|
|
|
473
|
+ $resultEntries['tenderingTerm']['fundingProgram'] = $this->existNodo($TenderingTerms, 'FundingProgram', 'string');
|
|
|
474
|
+ } else {
|
|
|
475
|
+ $resultEntries['tenderingTerm']['fundingProgramCode'] = $this->existNodo($TenderingTerms, 'FundingProgramCode', 'string');
|
|
|
476
|
+ }
|
|
|
477
|
+
|
|
|
478
|
+
|
|
|
479
|
+
|
468
|
$resultEntries['tenderingTerm']['id_ajena_licitacion'] = $this->idLicitacion;
|
480
|
$resultEntries['tenderingTerm']['id_ajena_licitacion'] = $this->idLicitacion;
|
469
|
$resultEntries['tenderingTerm']['id_compuesta'] = $this->idLicitacion . "_07";
|
481
|
$resultEntries['tenderingTerm']['id_compuesta'] = $this->idLicitacion . "_07";
|
470
|
$resultEntries['tenderingTerm']['fecha_creacion_log'] = $this->fechaInicioParser;
|
482
|
$resultEntries['tenderingTerm']['fecha_creacion_log'] = $this->fechaInicioParser;
|