Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 199 Rev 202
Line 102... Line 102...
102
	public function trier() {
102
	public function trier() {
Line 103... Line 103...
103
 
103
 
Line 104... Line 104...
104
	}
104
	}
-
 
105
 
-
 
106
	public function surligner() {
-
 
107
		$this->definirMotsASurligner();
-
 
108
		foreach ($this->infosPourTpl['noms'] as $idNom => $nom) {
-
 
109
			foreach ($nom['nomVerna'] as $idVerna => $nomVerna) {
-
 
110
				$nom['nomVerna'][$idVerna]['nom_vernaculaire'] = $this->surlignerMotsMasqueRecherche($nomVerna['nom_vernaculaire']);
-
 
111
			}
-
 
112
			$this->infosPourTpl['noms'][$idNom] = $nom;
105
 
113
		}
-
 
114
	}
-
 
115
	
-
 
116
	private function definirMotsASurligner() {
-
 
117
		$masqueSansAccent = $this->manipulateurDeChaine->supprimerAccents($this->parametres->masqueRecherche);
-
 
118
		$this->motsASurligner = explode(' ', $masqueSansAccent);
-
 
119
	}
-
 
120
	
-
 
121
	private function surlignerMotsMasqueRecherche($nom) {
-
 
122
		$this->surligneur->setTexte($nom);
106
	public function surligner() {
123
		$nom = $this->surligneur->surlignerMots($this->motsASurligner);
107
 
124
		return $nom;
108
	}
125
	}
109
}
126
}