Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 678 Rev 768
Line 92... Line 92...
92
		$conditions_taxons = $this->obtenirNumNomTaxonsSuperieurs($nn_demande);
92
		$conditions_taxons = $this->obtenirNumNomTaxonsSuperieurs($nn_demande);
93
		$conditions_taxons[] = $this->bdd->proteger($nn_demande);
93
		$conditions_taxons[] = $this->bdd->proteger($nn_demande);
Line 94... Line 94...
94
		
94
		
95
		$requete = "SELECT * FROM ".Config::get('bdd_table_especes').' '.
95
		$requete = "SELECT * FROM ".Config::get('bdd_table_especes').' '.
96
		           "WHERE num_nom_retenu IN (".implode(', ', $conditions_taxons).") OR ".
96
		           "WHERE num_nom_retenu IN (".implode(', ', $conditions_taxons).") OR ".
Line 97... Line 97...
97
				   "num_nom IN (".implode(', ', $conditions_taxons).") ";
97
				   "num_nom IN (".implode(', ', $conditions_taxons).") " . ' -- ' . __FILE__ . ':' . __LINE__;
98
				
98
				
99
		$statuts = $this->bdd->recuperer($requete);
99
		$statuts = $this->bdd->recuperer($requete);
100
		$statuts = $this->formaterRetour($statuts);
100
		$statuts = $this->formaterRetour($statuts);
Line 137... Line 137...
137
		return $retour;
137
		return $retour;
138
	}
138
	}
Line 139... Line 139...
139
	
139
	
140
	private function formaterStatutsTaxonZoneGeo($statuts_taxon) {
140
	private function formaterStatutsTaxonZoneGeo($statuts_taxon) {
-
 
141
		$lois_statuts = array();
-
 
142
		// cas ou la requĂȘte (obtenirStatuts()) ne retourne rien
-
 
143
		if(!$statuts_taxon) return array();
141
		$lois_statuts = array();
144
 
142
		foreach ($statuts_taxon as $champ => $statut) {
145
		foreach ($statuts_taxon as $champ => $statut) {
143
			if($statut == "1") {
146
			if($statut == "1") {
144
				$lois_statuts[] = $champ;
147
				$lois_statuts[] = $champ;
145
			}			
148
			}