Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 60 | Rev 165 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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