From 0454d24f2bc40bf80fa9c1609401ee27737b3b3a Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Fri, 14 Apr 2017 15:08:48 +0200 Subject: [PATCH] Simplification --- scripts/jobs/enrichissement.php | 39 +++------------------------------ 1 file changed, 3 insertions(+), 36 deletions(-) diff --git a/scripts/jobs/enrichissement.php b/scripts/jobs/enrichissement.php index 88938a4e..076e73e7 100644 --- a/scripts/jobs/enrichissement.php +++ b/scripts/jobs/enrichissement.php @@ -1855,6 +1855,7 @@ function actionnairesMultiple($siren, $nic) function participationsEntete() { return array( + 'ParId', 'ParSiren', 'ParActif', 'ParPDetention', @@ -1893,6 +1894,7 @@ function participationsMultiple($siren, $nic) if (count($result)>0) { foreach($result as $item) { $formatElement = array(); + $formatElement['ParId'] = $item->id; $formatElement['ParSiren'] = $item->siren; $formatElement['ParActif'] = $item->actif; $formatElement['ParPDetention'] = $item->PDetention; @@ -1939,42 +1941,7 @@ function participationsMultiple($siren, $nic) return $tabData; } - -// participations foreign -function participationsfEntete() -{ - return array( - 'ParId', - 'ParSiren', - 'ParActif', - 'ParPDetention', - 'ParPVote', - 'ParType', - 'ParRS', - 'ParPP', - 'ParPPDateNaiss', - 'ParPPLieuNaiss', - 'ParPPNat', - 'ParAdresseNum', - 'ParAdresseBTQ', - 'ParAdresseCodeVoie', - 'ParAdresseLibVoie', - 'ParAdresseCompl', - 'ParAdresseCP', - 'ParAdresseVille', - 'ParAdressePays', - 'ParIdLoc1Type', - 'ParIdLoc1Num', - 'ParIdLoc2Type', - 'ParIdLoc2Num', - 'ParIdLoc3Type', - 'ParIdLoc3Num', - 'ParDateEffetLien', - 'ParDate' - ); -} - -function participationsfMultiple($id, $values = false) +function participationsMultipleById($id, $values = false) { $liensM = new Metier_Liens_Base(); $liensM->setId($id);