Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 53 | Rev 86 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
53 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 NomsVernaculaires extends Eflore {
16
 
17
 
18
	public function getRechercheEtendue($nom) {
19
		$url = $this->getUrlRecherche($nom, 'etendue');
20
		return $this->chargerDonnees($url);
21
	}
22
 
23
	public function getRechercheFloue($nom) {
24
		$url = $this->getUrlRecherche($nom, 'floue');
25
		return $this->chargerDonnees($url);
26
	}
27
 
28
	private function getUrlRecherche($nom, $typeRech) {
29
		$tpl = Config::get('nomsVernaRechercheTpl');
81 delphine 30
		$projet = Config::get('bdtfx.referentielVerna');
31
		Debug::printr($projet,'1');
53 delphine 32
		$params = array('projet' => $projet, 'valeur' => $nom, 'type' => $typeRech);
81 delphine 33
		Debug::printr($params,'Params');
53 delphine 34
		$url = $this->formaterUrl($tpl, $params);
81 delphine 35
		Debug::printr($tpl,'TPL');
36
		Debug::printr($url,'URL');
53 delphine 37
		return $url;
38
	}
39
}
40
?>