Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Regard whitespace Rev 1199 → Rev 1200

/trunk/services/modules/0.1/moissonnage/cartes/SourceDonnees.php
132,10 → 132,17
"nom_scientifique_complet LIKE ".$this->bdd->proteger($this->taxon['nom_sci']) ;
if ($this->nomRang == 'espece' || $this->nomRang == 'sous_espece') {
foreach ($this->taxons as $sousTaxon) {
if ($source == "sophy") {
if ($sousTaxon['num_nom'] = $sousTaxon['num_nom_retenu']) {
$criteres[] =
"nom_scientifique_complet LIKE ".$this->bdd->proteger($sousTaxon['nom_sci']) ;
}
} else {
$criteres[] = (in_array($source, array("baznat", "ifn", "vigie_flore"))) ?
"num_nom = ".$sousTaxon['num_nom'] :
"nom_scientifique_complet LIKE ".$this->bdd->proteger($sousTaxon['nom_sci']) ;
}
}
} elseif ($this->nomRang == 'famille') {
foreach ($this->genres as $genre) {
$criteres[] = "nom_scientifique_complet LIKE ".$this->bdd->proteger($genre['nom_sci']."%");
142,6 → 149,7
}
}
return "(".implode(' OR ',array_unique($criteres)).")";
}
private function rechercherInfosCommune(& $stations) {