13,6 → 13,7 |
* |
*/ |
class PersonneDao extends ColModele { |
const SERVICE_PERSONNE = 'CoelPersonne'; |
|
/** |
* Retourne l'ensemble des information d'une personne. |
21,7 → 22,8 |
* @return array un tableau contenant les informations sur la personne. |
*/ |
public function getPersonne($id) { |
$json = file_get_contents("http://www.tela-botanica.org/eflore/coel/jrest/CoelPersonne/$id"); |
$url = $this->url_jrest.self::SERVICE_PERSONNE."/$id"; |
$json = file_get_contents($url); |
$donnees = json_decode($json, true); |
return $donnees; |
} |