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 16
Line 18... Line 18...
18
	 * Retourne l'ensemble des information sur une structure.
18
	 * Retourne l'ensemble des information sur une structure.
19
	 * 
19
	 * 
20
	 * @param integer l'id de la structure.
20
	 * @param integer l'id de la structure.
21
	 * @return array un tableau contenant les informations sur la structure.
21
	 * @return array un tableau contenant les informations sur la structure.
22
	 */
22
	 */
23
   public function getStructure($id) {
23
	public function getStructure($id) {
24
		$json = file_get_contents("http://www.tela-botanica.org/eflore/coel/jrest/CoelStructure/*/$id/*");
24
		$json = file_get_contents("http://www.tela-botanica.org/eflore/coel/jrest/CoelStructure/*/$id/*");
25
		$donnees = json_decode($json, true);
25
		$donnees = json_decode($json, true);
26
		//Debug::printr($json);
-
 
27
		return $donnees[1];
26
		return $donnees[1];
28
	}
27
	}
-
 
28
	
-
 
29
	/**
-
 
30
	 * Retourne l'ensemble des informations du personnel d'une structure.
-
 
31
	 * 
-
 
32
	 * @param integer l'id de la structure.
-
 
33
	 * @return array un tableau contenant les informations sur le personnel de la structure.
-
 
34
	 */
-
 
35
	public function getPersonnel($id) {
-
 
36
		$json = file_get_contents("http://www.tela-botanica.org/eflore/coel/jrest/CoelStructureAPersonne/$id");
-
 
37
		$donnees = json_decode($json, true);
-
 
38
		$this->nettoyerTableauDeTableauxAssoc($donnees);
-
 
39
		return $donnees;
-
 
40
	}
29
}
41
}
30
?>
42
?>
31
43