Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 336 Rev 370
Line 30... Line 30...
30
 
30
 
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
	}
-
 
35
	
-
 
36
	public function getNomFormateHtml($nn) {
-
 
37
		$url = $this->getUrlNomFormateHtml($nn);
-
 
38
		$retour = $this->chargerDonnees($url);
-
 
39
		return $retour['nom_sci'];
Line 34... Line 40...
34
	}
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;
Line 53... Line 59...
53
		$tpl = Config::get('nomTpl');
59
		$tpl = Config::get('nomTpl');
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
	}
-
 
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 58... Line 71...
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');