8,10 → 8,12 |
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
* @author Delphine CAUQUIL <delphine@tela-botanica.org> |
* @author Mathilde Salthun-lassalle <mathilde@tela-botanica.org> |
* @copyright 2011 Tela-Botanica |
* @author Raphaël Droz <raphael@tela-botanica.org> |
* @copyright 2011, 2013 Tela-Botanica |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2 |
* @version $Id$ |
* @used by modules/pdf_export/PdfExport.php::initialiser() |
* @used by modules/fiche/formateurs/Synthese.php::obtenirDonnees() |
*/ |
class Ecologie extends aControleur { |
|
155,11 → 157,13 |
} |
|
private function getBaseflor($inclure_legende = true) { |
if (Config::get($this->referentiel.'.baseEcologie') != "") { |
if (Config::get($this->referentiel.'.baseEcologie')) { |
$referentiel = $this->conteneur->getParametre('referentiel'); |
$num_nom = $this->nomCourant->getNnr(); |
$referentiel = $this->conteneur->getParametre('referentiel'); |
$cache = $this->obtenirCache('baseflor/graphique/'.$referentiel.'_'.$num_nom); |
if($cache != null) { |
|
// TODO: unserialize() pourrait aussi légitimement retourner FALSE |
$cache = unserialize($this->conteneur->getCache()->charger('baseflor/graphique/'.$referentiel.'_'.$num_nom)); |
if($cache) { |
$baseflor = $cache; |
$this->graphique ->setProjet('baseflor'); |
$graphique = $this->graphique->getLegendeGraphique(); |
196,7 → 200,8 |
$baseflor['meta']['citation'] = $citation; |
$baseflor['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('baseflor'); |
|
$this->mettreEnCache('baseflor/graphique/'.$referentiel.'_'.$num_nom, $baseflor); |
$this->conteneur->getCache()->sauver(serialize($baseflor), |
'baseflor/graphique/'.$referentiel.'_'.$num_nom); |
} else { |
$baseflor['aucune'] = 'Aucune donnée'; |
} |