Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev Author Line No. Line
257 delphine 1
<?php
2
// declare(encoding='UTF-8');
3
/**
4
 * Classe gérant les noms scientifiques.
5
 *
6
 * @category	PHP 5.2
7
 * @package		eflore-consultation
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @author		Delphine CAUQUIL <delphine@tela-botanica.org>
10
 * @copyright	2011 Tela-Botanica
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
12
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
13
 * @version		$Id$
14
 */
15
class MetaDonnees extends Eflore {
291 jpm 16
	private $version = '+';
17
 
18
	public function setVersion($version) {
257 delphine 19
		$this->version = $version;
20
	}
291 jpm 21
 
257 delphine 22
	public function getMetaDonnees() {
943 aurelien 23
		$url = $this->getUrlMetaDonnees();
1145 raphael 24
		// XXX: request ontologies
257 delphine 25
		return $this->chargerDonnees($url);
26
	}
27
 
943 aurelien 28
	private function getUrlMetaDonnees() {
257 delphine 29
		$tpl = Config::get('metaDonneesTpl');
30
		$params = array('verproj' => 'version.projet', 'version' => $this->version);
31
		$url = $this->formaterUrl($tpl, $params);
32
		return $url;
33
	}
34
}
35
?>