Subversion Repositories eFlore/Applications.coel-consultation

Compare Revisions

Regard whitespace Rev 61 → Rev 62

/trunk/modeles/PersonneDao.php
23,6 → 23,8
* @return array un tableau contenant les informations sur la personne.
*/
public function getPersonne($id) {
$donnees = array();
if (is_numeric($id)) {
$url = $this->url_jrest.self::SERVICE_PERSONNE."/$id";
$json = file_get_contents($url);
$donnees = json_decode($json, true);
29,6 → 31,7
if ($donnees['nbElements'] == 1) {
$donnees = $donnees['personnes'][0];
}
}
return $donnees;
}