| Line 179... |
Line 179... |
| 179 |
|
179 |
|
| 180 |
public function traiterEcologie() {
|
180 |
public function traiterEcologie() {
|
| 181 |
$donnees_presence = false;
|
181 |
$donnees_presence = false;
|
| 182 |
$this->champs_ontologiques = $this->recupererTableauConfig('champs_ontologiques');
|
182 |
$this->champs_ontologiques = $this->recupererTableauConfig('champs_ontologiques');
|
| - |
|
183 |
foreach ($this->champs_ontologiques as $cle => $valeur){
|
| - |
|
184 |
/* Les deux tests commentés ci-dessous étaient présents dans eflore-test (uniquement) jusqu'à juin 2013.
|
| - |
|
185 |
La valeur 0 pose question.
|
| - |
|
186 |
cf baseflor_v2012_12_31
|
| 183 |
foreach ($this->champs_ontologiques as $cle => $valeur){
|
187 |
cf services/modules/0.1/baseflor/CommunGraphiques.php traiterValeursEcologiques() */
|
| 184 |
if ($this->resultat_json[$cle.'_min'] != ""){
|
188 |
if ($this->resultat_json[$cle.'_min'] != "") { // && $this->resultat_json[$cle.'_min'] != 0) {
|
| 185 |
$donnees_presence[$this->getNomGraphique($valeur)] = true;
|
189 |
$donnees_presence[$this->getNomGraphique($valeur)] = true;
|
| 186 |
$tab_ontologie = $this->recupererOntologies($this->resultat_json[$cle.'_min'], $cle.'_min');
|
190 |
$tab_ontologie = $this->recupererOntologies($this->resultat_json[$cle.'_min'], $cle.'_min');
|
| 187 |
unset($this->resultat_json[$cle.'_min']);
|
191 |
unset($this->resultat_json[$cle.'_min']);
|
| 188 |
}
|
192 |
}
|
| 189 |
if ($this->resultat_json[$cle.'_max'] != ""){
|
193 |
if ($this->resultat_json[$cle.'_max'] != "") { // && $this->resultat_json[$cle.'_max'] != 0) {
|
| 190 |
$this->recupererOntologies($this->resultat_json[$cle.'_max'], $cle.'_max');
|
194 |
$this->recupererOntologies($this->resultat_json[$cle.'_max'], $cle.'_max');
|
| 191 |
unset($this->resultat_json[$cle.'_max']);
|
195 |
unset($this->resultat_json[$cle.'_max']);
|
| 192 |
}
|
196 |
}
|
| 193 |
}
|
197 |
}
|