Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev Author Line No. Line
777 mathilde 1
<?php
2
// declare(encoding='UTF-8');
3
/**
4
 * Classe gérant les syntaxons
5
 *
6
 * @category	PHP 5.2
7
 * @package		eflore-consultation
8
 * @author		Mathilde SALTHUN-LASSALLE <mathilde@tela-botanica.org>
9
 * @copyright	2011 Tela-Botanica
10
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
11
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
12
 * @version		$Id$
13
 */
14
 
15
class Syntaxons extends Eflore {
16
 
17
	private $catminat;
18
 
19
	public function setCatminat($code) {
20
		$this->catminat =  'catminat:'.$code;
21
	}
22
 
23
	public function getSyntaxonsSuperieurs() {
24
		$url = $this->getUrlSyntaxonsSuperieurs();
25
		return $this->chargerDonnees($url);
26
	}
27
 
28
	public function getSyntaxonsCatminat() {
29
		$url = $this->getUrlSyntaxonsCatminat();
30
		return $this->chargerDonnees($url);
31
	}
32
 
33
	public function getUrlSyntaxonsCatminat() {
34
		$tpl = Config::get('syntaxonsCatminat');
35
		$params = array( 'code' => urlencode($this->catminat));
36
		$url = $this->formaterUrl($tpl, $params);
37
		return $url;
38
	}
39
 
40
	public function getUrlSyntaxonsSuperieurs() {
41
		$tpl = Config::get('syntaxonsSuperieurs');
42
		$params = array( 'code' => $this->catminat);
43
		$url = $this->formaterUrl($tpl, $params);
44
		return $url;
45
	}
46
}
47
?>