16,12 → 16,16 |
public function __construct(Conteneur $conteneur) { |
$this->conteneur = $conteneur; |
$this->nomCourant = $this->conteneur->getNomCourant(); |
$this->informations = $this->conteneur->getApiInformations(); |
$this->meta = $this->conteneur->getApiMetaDonnees(); |
$this->wikini = $this->conteneur->getApiWikini(); |
$this->appUrls = $this->conteneur->getAppUrls(); |
} |
|
public function obtenirDonnees() { |
$donnees = array(); |
$donnees['wikini'] = $this->getWikini(); |
$donnees['baseflor'] = $this->getBaseflor(); |
return $donnees; |
} |
|
34,5 → 38,25 |
$wikini['ecologie'] = $this->wikini->getTexteFormate($page_wiki, 'ecologie'); |
return $wikini; |
} |
|
private function getBaseflor() { |
$baseflor = array(); |
$this->informations ->setProjet('baseflor'); |
$this->informations ->setBdnt($this->conteneur->getParametre('referentiel')); |
$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom')); |
$informations = $this->informations->getInformations(); |
if($informations != ""){ |
$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500"; |
$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500"; |
$this->meta->setProjet('baseflor'); |
$meta = $this->meta->getMetaDonnees(); |
$citation = $meta[0]['citation']; |
$baseflor['meta']['citation'] = $citation; |
$baseflor['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseflor'); |
}else { |
$baseflor['aucune'] = 'Aucunes données'; |
} |
return $baseflor; |
} |
} |
?> |