Subversion Repositories eFlore/Applications.coel-consultation

Compare Revisions

Ignore whitespace Rev 194 → Rev 195

/trunk/bibliotheque/dao/StructureDao.php
24,7 → 24,7
* @return array un tableau contenant les informations sur la structure.
*/
public function getStructure($id_structure) {
$url = $this->url_jrest.self::SERVICE_STRUCTURE."/*/$id_structure/*";
$url = $this->url_jrest.self::SERVICE_STRUCTURE."/$id_structure/*";
$json = $this->envoyerRequeteConsultation($url);
$donnees = json_decode($json, true);
return $donnees['structures'];
38,19 → 38,11
*/
public function getStructureParZoneGeo($type_recherche) {
$url = $this->url_jrest.self::SERVICE_STRUCTURE."/ParZoneGeo/$type_recherche";
$url = $this->limiterParProjets($url);
$json = $this->envoyerRequeteConsultation($url);
$donnees = json_decode($json, true);
return $donnees;
}
private function limiterParProjets($url) {
if (Config::get('projets') != '') {
$url .= '/'.Config::get('projets');
}
return $url;
}
/**
* Retourne l'ensemble des informations du personnel d'une structure.
*