Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 950 → Rev 951

/trunk/services/modules/0.1/chorodep/cartes/TaxonsCartes.php
220,22 → 220,10
}
 
foreach ($resultats as $ontologie) {
$this->ontologies[$ontologie['id']] = $this->extraireComplementsOntologies($ontologie);
$this->ontologies[$ontologie['id']] = Commun::extraireComplementsOntologies($ontologie);
}
}
 
 
private function extraireComplementsOntologies($ontologie) {
if ($ontologie['complements'] != '') {
$complements = explode(',', trim($ontologie['complements']));
foreach ($complements as $complement) {
list($cle, $val) = explode('=', trim($complement));
$ontologie[trim($cle)] = trim($val);
}
}
return $ontologie;
}
 
private function chargerLegende() {
foreach ($this->ontologies as $ontologie) {
if ($ontologie['classe_id'] == self::PRESENCE_CHOROLOGIE) {
/trunk/services/modules/0.1/chorodep/cartes/LegendeCartes.php
93,21 → 93,10
}
 
foreach ($resultats as $ontologie) {
$this->ontologies[$ontologie['id']] = $this->extraireComplementsOntologies($ontologie);
$this->ontologies[$ontologie['id']] = Commun::extraireComplementsOntologies($ontologie);
}
}
 
private function extraireComplementsOntologies($ontologie) {
if ($ontologie['complements'] != '') {
$complements = explode(',', trim($ontologie['complements']));
foreach ($complements as $complement) {
list($cle, $val) = explode('=', trim($complement));
$ontologie[trim($cle)] = trim($val);
}
}
return $ontologie;
}
 
private function chargerLegende() {
foreach ($this->ontologies as $ontologie) {
if ($ontologie['classe_id'] == self::PRESENCE_CHOROLOGIE) {