Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 336 | Rev 378 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 336 Rev 370
Line 31... Line 31...
31
	public function getNom($nn) {
31
	public function getNom($nn) {
32
		$url = $this->getUrlNom($nn);
32
		$url = $this->getUrlNom($nn);
33
		return $this->chargerDonnees($url);
33
		return $this->chargerDonnees($url);
34
	}
34
	}
Line -... Line 35...
-
 
35
	
-
 
36
	public function getNomFormateHtml($nn) {
-
 
37
		$url = $this->getUrlNomFormateHtml($nn);
-
 
38
		$retour = $this->chargerDonnees($url);
-
 
39
		return $retour['nom_sci'];
-
 
40
	}
35
 
41
 
36
	public function getRechercheEtendue($nom, $type_resultat = '') {
42
	public function getRechercheEtendue($nom, $type_resultat = '') {
37
		$methode = 'getUrlRecherche'.$type_resultat;
43
		$methode = 'getUrlRecherche'.$type_resultat;
38
		if (method_exists($this, $methode)) {
44
		if (method_exists($this, $methode)) {
39
			$url = $this->$methode($nom, 'etendue');
45
			$url = $this->$methode($nom, 'etendue');
Line 54... Line 60...
54
		$params = array('id' => $nn);
60
		$params = array('id' => $nn);
55
		$url = $this->formaterUrl($tpl, $params);
61
		$url = $this->formaterUrl($tpl, $params);
56
		return $url;
62
		return $url;
57
	}
63
	}
Line -... Line 64...
-
 
64
	
-
 
65
	private function getUrlNomFormateHtml($nn) {
-
 
66
		$tpl = Config::get('nomFormateHtmlTpl');
-
 
67
		$params = array('id' => $nn);
-
 
68
		$url = $this->formaterUrl($tpl, $params);
-
 
69
		return $url;
-
 
70
	}
58
 
71
 
59
	// retourne les champs par defaut
72
	// retourne les champs par defaut
60
	private function getUrlRecherche($nom, $typeRech) {
73
	private function getUrlRecherche($nom, $typeRech) {
61
		$tpl = Config::get('nomsRechercheTpl');
74
		$tpl = Config::get('nomsRechercheTpl');
62
		$params = array('valeur' => $nom, 'type' => $typeRech);
75
		$params = array('valeur' => $nom, 'type' => $typeRech);