utiliser la methode Scores_Ws_Client
This commit is contained in:
parent
54b5952899
commit
63b6fd8e13
@ -361,10 +361,18 @@ class IdentiteController extends Zend_Controller_Action
|
||||
$nbAffichage = 50;
|
||||
$position = ($page - 1 ) * $nbAffichage;
|
||||
|
||||
$ws = new WsScores();
|
||||
$infos = $ws->getListeEtablissements($siren, $actif, $position, $nbAffichage);
|
||||
if ($infos === false) $this->_forward('soap', 'error');
|
||||
|
||||
$params = new stdClass();
|
||||
$params->siren = $siren;
|
||||
$params->actif = $actif;
|
||||
$params->position = $position;
|
||||
$params->nbAffichage = $nbAffichage;
|
||||
|
||||
$ws = new Scores_Ws_Client('entreprise', '0.8');
|
||||
$infos = $ws->getListeEtablissements($params);
|
||||
if ($infos === false) {
|
||||
$this->view->msg = "Erreur";
|
||||
} else {
|
||||
$etabs = $infos->result->item;
|
||||
|
||||
$this->view->assign('actif', $actif);
|
||||
@ -418,6 +426,7 @@ class IdentiteController extends Zend_Controller_Action
|
||||
$this->view->assign('hasPrefCarte', $user->checkPref('cartes'));
|
||||
$this->view->assign('listeEtablissement', $infos);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Affichage des établissements sur une carte (Google Maps)
|
||||
|
Loading…
Reference in New Issue
Block a user