Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 196 Rev 284
Line 12... Line 12...
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 NomsVernaculaires extends Eflore {
15
class NomsVernaculaires extends Eflore {
Line -... Line 16...
-
 
16
	
-
 
17
	public function getRechercheComplete($num_tax) {
-
 
18
		$tpl = Config::get('nomsVernaRechercheCompleteTpl');
-
 
19
		$params = array('valeur' => $num_tax, 'projet' => 'nvjfl');
-
 
20
		$url = $this->formaterUrl($tpl, $params);
-
 
21
		return $this->chargerDonnees($url);
Line 16... Line 22...
16
	
22
	}
17
	
23
	
18
	public function getRechercheEtendue($nom, $type_resultat = '') {
24
	public function getRechercheEtendue($nom, $type_resultat = '') {
19
		$methode = 'getUrlRecherche'.$type_resultat;
25
		$methode = 'getUrlRecherche'.$type_resultat;
Line 32... Line 38...
32
	}
38
	}
Line 33... Line 39...
33
	
39
	
34
	private function getUrlRecherche($nom, $typeRech) {
40
	private function getUrlRecherche($nom, $typeRech) {
35
		$tpl = Config::get('nomsVernaRechercheTpl');
41
		$tpl = Config::get('nomsVernaRechercheTpl');
36
		$params = array('valeur' => $nom, 'type' => $typeRech, 'langue' => 'fra');
-
 
37
		Debug::printr($params,'Params');
42
		$params = array('valeur' => $nom, 'type' => $typeRech, 'langue' => 'fra');
38
		$url = $this->formaterUrl($tpl, $params);
-
 
39
		Debug::printr($tpl,'TPL');
-
 
40
		Debug::printr($url,'URL');
43
		$url = $this->formaterUrl($tpl, $params);
41
		return $url;
44
		return $url;
Line 42... Line 45...
42
	}
45
	}
43
	
46
	
44
	private function getUrlRechercheDetermination($nom, $typeRech) {
47
	private function getUrlRechercheDetermination($nom, $typeRech) {
45
		$tpl = Config::get('nomsVernaRechercheDeterminationTpl');
-
 
46
		$params = array('valeur' => $nom, 'type' => $typeRech, 'langue' => 'fra');
48
		$tpl = Config::get('nomsVernaRechercheDeterminationTpl');
47
		Debug::printr($params,'Params');
-
 
48
		$url = $this->formaterUrl($tpl, $params);
-
 
49
		Debug::printr($tpl,'TPL');
49
		$params = array('valeur' => $nom, 'type' => $typeRech, 'langue' => 'fra');
50
		Debug::printr($url,'URL');
50
		$url = $this->formaterUrl($tpl, $params);
51
		return $url;
51
		return $url;
52
	}
52
	}
53
}
53
}