Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 1175 Rev 1206
Line 160... Line 160...
160
         }
160
         }
161
     }
161
     }
Line 162... Line 162...
162
 
162
 
163
     public function ajouterFiltreMasque($nom_champ, $valeur) {
163
     public function ajouterFiltreMasque($nom_champ, $valeur) {
-
 
164
         if ($nom_champ == 'num_taxon') { // si il s'agit d'un chiffre
164
         if ($nom_champ == 'num_taxon') { // si il s'agit d'un chiffre
165
         	 $valeur = implode(',', array_map(array($this->getBdd(), 'proteger'), explode(',',$valeur)));
165
             $this->requete_condition[] = $nom_champ.' = '.$this->getBdd()->proteger($valeur);
166
             $this->requete_condition[] = $nom_champ.' IN ('.$valeur.')';
166
         } else {
167
         } else {
167
             if ($this->recherche == 'floue') {
168
             if ($this->recherche == 'floue') {
168
                 $this->requete_condition[] = '(SOUNDEX('.$nom_champ.') = SOUNDEX(\''.$valeur.'\')'
169
                 $this->requete_condition[] = '(SOUNDEX('.$nom_champ.') = SOUNDEX(\''.$valeur.'\')'
169
                     .' OR SOUNDEX(REVERSE('.$nom_champ.')) = SOUNDEX(REVERSE(\''.$valeur.'\'))) ';
170
                     .' OR SOUNDEX(REVERSE('.$nom_champ.')) = SOUNDEX(REVERSE(\''.$valeur.'\'))) ';