* @copyright 2010 Tela-Botanica * @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL * @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL * @version SVN: $Id$ * */ class PersonneDao extends ColModele { const SERVICE_PERSONNE = 'CoelPersonne'; /** * Retourne l'ensemble des information d'une personne. * * @param integer l'id de la personne. * @return array un tableau contenant les informations sur la personne. */ public function getPersonne($id) { $url = $this->url_jrest.self::SERVICE_PERSONNE."/$id"; $json = file_get_contents($url); $donnees = json_decode($json, true); return $donnees; } public function getPersonneNomComplet($id) { $donnees = $this->getPersonne($id); $nom_complet = $donnees['personnes'][0]['cp_fmt_nom_complet']; return $nom_complet; } } ?>