Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 696 → Rev 697

/trunk/modules/fiche/formateurs/Ecologie.php
33,6 → 33,13
return $donnees;
}
public function obtenirDonneesEXport() {
$donnees = array();
$donnees['wikini'] = $this->getWikini();
$donnees['baseflor'] = $this->getBaseflorExport();
return $donnees;
}
private function getWikini() {
$wikini = array();
$wikini['titre'] = 'Wikini';
50,6 → 57,29
return $donnees;
}
private function getBaseflorExport() {
$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->getInformationsEcologie();
if($informations != ""){
$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500";
$baseflor['climat_url_png'] = $informations['graphique_climat']['href']."?retour=image/png";
$baseflor['sol_url_png'] = $informations['graphique_sol']['href']."?retour=image/png";
$this->graphique -> setProjet('baseflor');
$baseflor['legende_eco'] = Config::get('chemin_images').'legende_formes.png';
$this->meta->setProjet('baseflor');
$meta = $this->meta->getMetaDonnees();
$citation = $meta[0]['citation'];
$baseflor['meta']['citation'] = $citation;
}else {
$baseflor['aucune'] = 'Aucunes données';
}
return $baseflor;
}
private function getBaseflor() {
$baseflor = array();
$this->informations ->setProjet('baseflor');