Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 943 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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