Subversion Repositories eFlore/Applications.coel-consultation

Rev

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

Rev 22 Rev 97
Line 7... Line 7...
7
 * @category	php 5.2
7
 * @category	php 5.2
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @copyright	2010 Tela-Botanica
9
 * @copyright	2010 Tela-Botanica
10
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
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
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
12
 * @version		SVN: $Id: MetadonneeDao.php 22 2010-03-30 10:50:03Z jpm $
12
 * @version		SVN: $Id: MetadonneeDao.php 97 2010-06-22 08:14:26Z jpm $
13
 *
13
 *
14
 */
14
 */
15
class MetadonneeDao extends ColModele {
15
class MetadonneeDao extends ColModele {
16
	const SERVICE_ONTOLOGIE = 'CoelValeurListe';
16
	const SERVICE_ONTOLOGIE = 'CoelValeurListe';
Line 33... Line 33...
33
	 * 
33
	 * 
34
	 * @param integer l'id d'une valeur ou un ensemble d'id de valeurs séparés par des virgules.
34
	 * @param integer l'id d'une valeur ou un ensemble d'id de valeurs séparés par des virgules.
35
	 * @return array un tableau contenant les valeurs.
35
	 * @return array un tableau contenant les valeurs.
36
	 */
36
	 */
37
	public function getOntologieValeur($id_valeurs) {
37
	public function getOntologieValeur($id_valeurs) {
-
 
38
		$donnees = array();
-
 
39
		if (!empty($id_valeurs)) {
38
		$url = $this->url_jrest.self::SERVICE_ONTOLOGIE."/idv/$id_valeurs";
40
			$url = $this->url_jrest.self::SERVICE_ONTOLOGIE."/idv/$id_valeurs";
39
		$json = file_get_contents($url);
41
			$json = file_get_contents($url);
40
		$donnees = json_decode($json, true);
42
			$donnees = json_decode($json, true);
-
 
43
		}
41
		return $donnees;
44
		return $donnees;
42
	}
45
	}
43
}
46
}
44
?>
47
?>
45
48