23,8 → 23,8 |
* @param integer l'id de la structure. |
* @return array un tableau contenant les informations sur la structure. |
*/ |
public function getStructure($id_structure) { |
$url = $this->url_jrest.self::SERVICE_STRUCTURE."/*/$id_structure/*"; |
public function getStructure($id) { |
$url = $this->url_jrest.self::SERVICE_STRUCTURE."/*/$id/*"; |
$json = file_get_contents($url); |
$donnees = json_decode($json, true); |
return $donnees['structures']; |
49,8 → 49,8 |
* @param integer l'id de la structure. |
* @return array un tableau contenant les informations sur le personnel de la structure. |
*/ |
public function getPersonnel($id_structure) { |
$url = $this->url_jrest.self::SERVICE_STRUCTURE_A_PERSONNE."/$id_structure"; |
public function getPersonnel($id) { |
$url = $this->url_jrest.self::SERVICE_STRUCTURE_A_PERSONNE."/$id"; |
$json = file_get_contents($url); |
$donnees = json_decode($json, true); |
$personnes = $donnees['structuresAPersonne']; |