Subversion Repositories eFlore/Applications.coel-consultation

Rev

Rev 15 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15 Rev 19
Line 11... Line 11...
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
12
 * @version		SVN: $Id$
12
 * @version		SVN: $Id$
13
 *
13
 *
14
 */
14
 */
15
class PersonneDao extends ColModele {
15
class PersonneDao extends ColModele {
-
 
16
	const SERVICE_PERSONNE = 'CoelPersonne';
Line 16... Line 17...
16
 
17
 
17
	/**
18
	/**
18
	 * Retourne l'ensemble des information d'une personne.
19
	 * Retourne l'ensemble des information d'une personne.
19
	 * 
20
	 * 
20
	 * @param integer l'id de la personne.
21
	 * @param integer l'id de la personne.
21
	 * @return array un tableau contenant les informations sur la personne.
22
	 * @return array un tableau contenant les informations sur la personne.
22
	 */
23
	 */
-
 
24
	public function getPersonne($id) {
23
	public function getPersonne($id) {
25
		$url = $this->url_jrest.self::SERVICE_PERSONNE."/$id";
24
		$json = file_get_contents("http://www.tela-botanica.org/eflore/coel/jrest/CoelPersonne/$id");
26
		$json = file_get_contents($url);
25
		$donnees = json_decode($json, true);
27
		$donnees = json_decode($json, true);
26
		return $donnees;
28
		return $donnees;
Line 27... Line 29...
27
	}
29
	}