Pārlūkot izejas kodu

TODO con nodos que faltan

Nermosis 3 gadus atpakaļ
vecāks
revīzija
c64a9fe034
1 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. 8 1
      application/libraries/ParserFile.php

+ 8 - 1
application/libraries/ParserFile.php Parādīt failu

@@ -8,6 +8,11 @@ class ParserFile
8 8
     protected $rutaMensual = FCPATH . "DOWNLOADS/MONTH/format";
9 9
 
10 10
     //TODO: Añadir los nodos que falten mirando la libreria de java
11
+    //TODO Nuevo Nodo: Proveedor de pliegos->TenderingTerms->DocumentProviderParty
12
+    //TODO Nuevo Nodo: Lugar de recepción->TenderingTerms->TenderRecipientParty
13
+    //TODO Nuevo Nodo: Proveedor de información adicional->TenderingTerms->AdditionalInformationParty
14
+    //TODO Nuevo Nodo: Información sobre recursos//Lugar de presentación de recursos//Fecha límite de presentación de recursos//Arbitraje->TenderingTerms->AppealTerms
15
+    //TODO Nuevo Nodo: Eventos->TenderingProcess->OpenTenderEvent
11 16
 
12 17
     public function __construct()
13 18
     {
@@ -146,7 +151,7 @@ class ParserFile
146 151
             if (isset($party->PartyIdentification) && !empty($party->PartyIdentification)) {
147 152
                 for ($i = 0; $i < count($party->PartyIdentification); $i++) {
148 153
                     $resultEntries['partyIdentification'][$i]['idPartyIdent'] = $this->existNodo($party->PartyIdentification[$i], "ID", 'string');
149
-                    $resultEntries['partyIdentification'][$i]['attr'] = $this->existAttribute($party, $party->PartyIdentification[$i], "string", 'schemeName');
154
+                    $resultEntries['partyIdentification'][$i]['attr'] = $this->existAttribute($party, $party->PartyIdentification[$i]->ID, "string", 'schemeName');
150 155
                 }
151 156
             }
152 157
 
@@ -534,8 +539,10 @@ class ParserFile
534 539
 
535 540
     private function recurseXML($xml, $parent = "")
536 541
     {
542
+        //TODO: 01-02-22- me he quedado acabando esto
537 543
         $child_count = 0;
538 544
         $result = array();
545
+        $mapaNodo = array();
539 546
         foreach ($xml as $key => $value) {
540 547
             $child_count++;
541 548
             if ($this->RecurseXML($value, $parent . "." . $key) == 0) // no childern, aka "leaf node"