Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 370 Rev 378
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 35... Line -...
35
	
-
 
36
	public function getNomFormateHtml($nn) {
-
 
37
		$url = $this->getUrlNomFormateHtml($nn);
-
 
38
		$retour = $this->chargerDonnees($url);
-
 
39
		return $retour['nom_sci'];
-
 
Line 40... Line 35...
40
	}
35
	
41
 
36
 
42
	public function getRechercheEtendue($nom, $type_resultat = '') {
37
	public function getRechercheEtendue($nom, $type_resultat = '') {
43
		$methode = 'getUrlRecherche'.$type_resultat;
38
		$methode = 'getUrlRecherche'.$type_resultat;
Line 59... Line 54...
59
		$tpl = Config::get('nomTpl');
54
		$tpl = Config::get('nomTpl');
60
		$params = array('id' => $nn);
55
		$params = array('id' => $nn);
61
		$url = $this->formaterUrl($tpl, $params);
56
		$url = $this->formaterUrl($tpl, $params);
62
		return $url;
57
		return $url;
63
	}
58
	}
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
	}
-
 
Line 71... Line 59...
71
 
59
 
72
	// retourne les champs par defaut
60
	// retourne les champs par defaut
73
	private function getUrlRecherche($nom, $typeRech) {
61
	private function getUrlRecherche($nom, $typeRech) {
74
		$tpl = Config::get('nomsRechercheTpl');
62
		$tpl = Config::get('nomsRechercheTpl');