Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 53 Rev 60
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 Noms extends Eflore {
15
class Noms extends Eflore {
Line 16... Line -...
16
	
-
 
17
	public function getStatsInitialesFamille() {
-
 
18
		$url = $this->getUrlStatsInitiales(180);
-
 
19
		return $this->chargerDonnees($url);
-
 
20
	}
-
 
21
	
-
 
22
	public function getStatsInitialesGenre() {
-
 
23
		$url = $this->getUrlStatsInitiales(220);
-
 
24
		return $this->chargerDonnees($url);
-
 
25
	}
-
 
26
	
-
 
27
	private function getUrlStatsInitiales($rang) {
-
 
28
		$tpl = Config::get('nomsStatsInitialesRangTpl');
-
 
29
		$projet = Registre::get('parametres.referentiel');
-
 
30
		Debug::printr($projet);
-
 
31
		$params = array('projet' => $projet, 'rang' => $rang);
-
 
32
		$url = $this->formaterUrl($tpl, $params);
-
 
33
		return $url;
-
 
34
	}
-
 
35
	
16
	
36
	public function getRechercheEtendue($nom) {
17
	public function getRechercheEtendue($nom) {
37
		$url = $this->getUrlRecherche($nom, 'etendue');
18
		$url = $this->getUrlRecherche($nom, 'etendue');
38
		return $this->chargerDonnees($url);
19
		return $this->chargerDonnees($url);
Line 43... Line 24...
43
		return $this->chargerDonnees($url);
24
		return $this->chargerDonnees($url);
44
	}
25
	}
Line 45... Line 26...
45
	
26
	
46
	private function getUrlRecherche($nom, $typeRech) {
27
	private function getUrlRecherche($nom, $typeRech) {
47
		$tpl = Config::get('nomsRechercheTpl');
-
 
48
		$projet = Registre::get('parametres.referentiel');
-
 
49
		Debug::printr($projet);
28
		$tpl = Config::get('nomsRechercheTpl');
50
		$params = array('projet' => $projet, 'valeur' => $nom, 'type' => $typeRech);
29
		$params = array('valeur' => $nom, 'type' => $typeRech);
51
		$url = $this->formaterUrl($tpl, $params);
30
		$url = $this->formaterUrl($tpl, $params);
52
		return $url;
31
		return $url;
53
	}
32
	}
54
}
33
}
55
?>
34
?>