Subversion Repositories eFlore/Applications.coel-consultation

Rev

Rev 16 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
15 jpm 1
<?php
2
// declare(encoding='UTF-8');
3
/**
4
 * Modèle d'accès à la base de données des Collections pour le module Structure.
5
 *
6
 * @package		Collection
7
 * @category	php 5.2
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @copyright	2010 Tela-Botanica
10
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
12
 * @version		SVN: $Id$
13
 *
14
 */
15
class StructureDao extends ColModele {
16
 
17
	/**
18
	 * Retourne l'ensemble des information sur une structure.
19
	 *
20
	 * @param integer l'id de la structure.
21
	 * @return array un tableau contenant les informations sur la structure.
22
	 */
23
   public function getStructure($id) {
24
		$json = file_get_contents("http://www.tela-botanica.org/eflore/coel/jrest/CoelStructure/*/$id/*");
25
		$donnees = json_decode($json, true);
26
		//Debug::printr($json);
27
		return $donnees[1];
28
	}
29
}
30
?>