Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 751 → Rev 752

/trunk/modules/fiche/formateurs/Ecologie.php
52,7 → 52,7
public function getBloc() {
$donnees = array();
$donnees = $this->getBaseflor();
$donnees = $this->getBaseflor(false);
$donnees['titre'] = 'Optimum écologique';
return $donnees;
}
80,7 → 80,7
return $baseflor;
}
private function getBaseflor() {
private function getBaseflor($inclure_legende = true) {
$baseflor = array();
$this->informations ->setProjet('baseflor');
$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
92,8 → 92,10
$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');
$graphique = $this->graphique->getLegendeGraphique();
$baseflor['legende'] = $graphique ;
if($inclure_legende) {
$graphique = $this->graphique->getLegendeGraphique();
$baseflor['legende'] = $graphique ;
}
$this->meta->setProjet('baseflor');
$meta = $this->meta->getMetaDonnees();
$citation = $meta[0]['citation'];