Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev Author Line No. Line
44 jpm 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 Noms extends Eflore {
133 jpm 16
 
53 delphine 17
	public function getRechercheEtendue($nom) {
18
		$url = $this->getUrlRecherche($nom, 'etendue');
133 jpm 19
		return $this->chargerDonneesRecursivement($url);
53 delphine 20
	}
133 jpm 21
 
53 delphine 22
	public function getRechercheFloue($nom) {
23
		$url = $this->getUrlRecherche($nom, 'floue');
24
		return $this->chargerDonnees($url);
25
	}
133 jpm 26
 
53 delphine 27
	private function getUrlRecherche($nom, $typeRech) {
28
		$tpl = Config::get('nomsRechercheTpl');
60 jpm 29
		$params = array('valeur' => $nom, 'type' => $typeRech);
53 delphine 30
		$url = $this->formaterUrl($tpl, $params);
31
		return $url;
32
	}
44 jpm 33
}
34
?>