23,8 → 23,20 |
public function getStructure($id) { |
$json = file_get_contents("http://www.tela-botanica.org/eflore/coel/jrest/CoelStructure/*/$id/*"); |
$donnees = json_decode($json, true); |
//Debug::printr($json); |
return $donnees[1]; |
} |
|
/** |
* Retourne l'ensemble des informations du personnel d'une structure. |
* |
* @param integer l'id de la structure. |
* @return array un tableau contenant les informations sur le personnel de la structure. |
*/ |
public function getPersonnel($id) { |
$json = file_get_contents("http://www.tela-botanica.org/eflore/coel/jrest/CoelStructureAPersonne/$id"); |
$donnees = json_decode($json, true); |
$this->nettoyerTableauDeTableauxAssoc($donnees); |
return $donnees; |
} |
} |
?> |