|
|
|
|
8
|
protected $rutaMensual = FCPATH . "DOWNLOADS/MONTH/format";
|
8
|
protected $rutaMensual = FCPATH . "DOWNLOADS/MONTH/format";
|
9
|
|
9
|
|
10
|
//TODO: Añadir los nodos que falten mirando la libreria de java
|
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
|
public function __construct()
|
17
|
public function __construct()
|
13
|
{
|
18
|
{
|
|
|
|
|
146
|
if (isset($party->PartyIdentification) && !empty($party->PartyIdentification)) {
|
151
|
if (isset($party->PartyIdentification) && !empty($party->PartyIdentification)) {
|
147
|
for ($i = 0; $i < count($party->PartyIdentification); $i++) {
|
152
|
for ($i = 0; $i < count($party->PartyIdentification); $i++) {
|
148
|
$resultEntries['partyIdentification'][$i]['idPartyIdent'] = $this->existNodo($party->PartyIdentification[$i], "ID", 'string');
|
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
|
|
539
|
|
535
|
private function recurseXML($xml, $parent = "")
|
540
|
private function recurseXML($xml, $parent = "")
|
536
|
{
|
541
|
{
|
|
|
542
|
+ //TODO: 01-02-22- me he quedado acabando esto
|
537
|
$child_count = 0;
|
543
|
$child_count = 0;
|
538
|
$result = array();
|
544
|
$result = array();
|
|
|
545
|
+ $mapaNodo = array();
|
539
|
foreach ($xml as $key => $value) {
|
546
|
foreach ($xml as $key => $value) {
|
540
|
$child_count++;
|
547
|
$child_count++;
|
541
|
if ($this->RecurseXML($value, $parent . "." . $key) == 0) // no childern, aka "leaf node"
|
548
|
if ($this->RecurseXML($value, $parent . "." . $key) == 0) // no childern, aka "leaf node"
|