issue #0000078 : Filtre BOAMP
This commit is contained in:
parent
c18fbe91fd
commit
3e49636ec8
@ -1037,13 +1037,20 @@ class WsScores
|
|||||||
$params = new stdClass();
|
$params = new stdClass();
|
||||||
$params->siren = $siren;
|
$params->siren = $siren;
|
||||||
$params->idAnn = $idAnn;
|
$params->idAnn = $idAnn;
|
||||||
$params->filtre = $filtre;
|
|
||||||
|
$params->filtre = null;
|
||||||
|
if (!empty($filtre) && in_array($filtre,array('A','M'))) {
|
||||||
|
$filtreStruct = new stdClass();
|
||||||
|
$filtreStruct->key = 'type';
|
||||||
|
$filtreStruct->value = $filtre;
|
||||||
|
$params->filtre[] = $filtreStruct;
|
||||||
|
}
|
||||||
|
|
||||||
$params->position = $position;
|
$params->position = $position;
|
||||||
$params->nbRep = $nbRep;
|
$params->nbRep = $nbRep;
|
||||||
$client = $this->loadClient('entreprise');
|
$client = $this->loadClient('entreprise');
|
||||||
try {
|
try {
|
||||||
$reponse = $client->getAnnoncesBoamp($params);
|
$reponse = $client->getAnnoncesBoamp($params);
|
||||||
Zend_Registry::get('firebug')->info($reponse);
|
|
||||||
$cache->deletefile();
|
$cache->deletefile();
|
||||||
$cache->setBlock($reponse->getAnnoncesBoampResult);
|
$cache->setBlock($reponse->getAnnoncesBoampResult);
|
||||||
return $reponse->getAnnoncesBoampResult;
|
return $reponse->getAnnoncesBoampResult;
|
||||||
@ -1069,7 +1076,6 @@ class WsScores
|
|||||||
$client = $this->loadClient('entreprise');
|
$client = $this->loadClient('entreprise');
|
||||||
try {
|
try {
|
||||||
$reponse = $client->getAnnoncesAsso($params);
|
$reponse = $client->getAnnoncesAsso($params);
|
||||||
Zend_Registry::get('firebug')->info($reponse);
|
|
||||||
$cache->deletefile();
|
$cache->deletefile();
|
||||||
$cache->setBlock($reponse->getAnnoncesAssoResult);
|
$cache->setBlock($reponse->getAnnoncesAssoResult);
|
||||||
return $reponse->getAnnoncesAssoResult;
|
return $reponse->getAnnoncesAssoResult;
|
||||||
|
Loading…
Reference in New Issue
Block a user