Modification du retour de la méthode extract
This commit is contained in:
parent
9a8d4b6967
commit
c88eb0c2fb
@ -49,18 +49,19 @@ Class Ciblage
|
||||
}
|
||||
}
|
||||
|
||||
public function extract($structure)
|
||||
public function extract()
|
||||
{
|
||||
$resultats = $this->execute(true);
|
||||
$total = array(
|
||||
'total' => count($resultats),
|
||||
'insee' => $this->calculRedevanceInsee(),
|
||||
'result'=> $resultats
|
||||
);
|
||||
foreach ($total['result']['matches'] as $element) {
|
||||
$siret = array();
|
||||
foreach ($resutlats['matches'] as $element) {
|
||||
$siret[] = $element['attrs']['siren'].$element['attrs']['nic'];
|
||||
}
|
||||
return ($siret);
|
||||
$total = array(
|
||||
'total' => count($resultats),
|
||||
'insee' => $this->calculRedevanceInsee(),
|
||||
'result'=> $siret
|
||||
);
|
||||
return $total;
|
||||
}
|
||||
|
||||
public function calculRedevanceInsee()
|
||||
|
Loading…
Reference in New Issue
Block a user