Subversion Repositories eFlore/Applications.coel-consultation

Compare Revisions

Ignore whitespace Rev 117 → Rev 118

/trunk/modeles/StructureDao.php
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) {
$url = $this->url_jrest.self::SERVICE_STRUCTURE."/*/$id/*";
public function getStructure($id_structure) {
$url = $this->url_jrest.self::SERVICE_STRUCTURE."/*/$id_structure/*";
$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) {
$url = $this->url_jrest.self::SERVICE_STRUCTURE_A_PERSONNE."/$id";
public function getPersonnel($id_structure) {
$url = $this->url_jrest.self::SERVICE_STRUCTURE_A_PERSONNE."/$id_structure";
$json = file_get_contents($url);
$donnees = json_decode($json, true);
$personnes = $donnees['structuresAPersonne'];