Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 163 Rev 791
Line 33... Line 33...
33
	}
33
	}
Line 34... Line 34...
34
 
34
 
35
	public function getTplNom() {
35
	public function getTplNom() {
36
		return self::TPL_VUE;
36
		return self::TPL_VUE;
-
 
37
	}
-
 
38
	
-
 
39
	private function supprimerCodeReftaxAvecNn($nn) {
-
 
40
		$codeReftax = $this->parametres->reftaxCourant.'.nn:';
-
 
41
		return str_replace($codeReftax, '', $nn);
Line 37... Line 42...
37
	}
42
	}
-
 
43
 
-
 
44
	public function formater() {
-
 
45
	foreach ($this->noms as $id => $nom) {
-
 
46
			$nn = $this->supprimerCodeReftaxAvecNn($nom['nom_retenu.code']);
-
 
47
			$infosDuNom = array();
-
 
48
			$infosDuNom['nomSci'] = $nom['taxon'];
-
 
49
			$infosDuNom['nomVerna'] = $nom['nom_vernaculaire'];
-
 
50
			$infosDuNom['langue'] = $nom['code_langue'];
38
 
51
			$infosDuNom['geo'] = $nom['zone_usage'];
-
 
52
			$infosDuNom['urlFiche'] = $this->urls->obtenirUrlFiche($nn, $this->parametres->typeNom,  $this->parametres->masqueRecherche);
39
	public function formater() {
53
			$this->infosPourTpl['noms'][$nn] = $infosDuNom;
Line 40... Line 54...
40
		$this->infosPourTpl['noms'] = false;
54
		}
41
	}
-
 
-
 
55
	}
-
 
56
 
-
 
57
	public function trier() {
42
 
58
		$this->trieur->setTableau($this->infosPourTpl['noms']);
Line 43... Line 59...
43
	public function trier() {
59
		$this->trieur->setChampsEtOrdres(array('nomVerna'=> SORT_NATURAL));
Line 44... Line 60...
44
 
60
		$this->infosPourTpl['noms'] = $this->trieur->trier();