Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 806 | Details | Compare with Previous | 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
 
806 mathilde 33
	public function getSyntaxonsSynonymes() {
34
		$url = $this->getUrlSyntaxonsSynonymes();
35
		return $this->chargerDonnees($url);
36
	}
37
 
777 mathilde 38
	public function getUrlSyntaxonsCatminat() {
39
		$tpl = Config::get('syntaxonsCatminat');
1245 delphine 40
		$params = array( 'code' => $this->catminat);
777 mathilde 41
		$url = $this->formaterUrl($tpl, $params);
42
		return $url;
43
	}
44
 
45
	public function getUrlSyntaxonsSuperieurs() {
46
		$tpl = Config::get('syntaxonsSuperieurs');
47
		$params = array( 'code' => $this->catminat);
48
		$url = $this->formaterUrl($tpl, $params);
49
		return $url;
50
	}
806 mathilde 51
 
52
	public function getUrlSyntaxonsSynonymes() {
53
		$tpl = Config::get('syntaxonsSynonymes');
54
		$params = array( 'code' => $this->catminat);
55
		$url = $this->formaterUrl($tpl, $params);
56
		return $url;
57
	}
777 mathilde 58
}
59
?>