Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 1058 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1058 Rev 1359
Line 25... Line 25...
25
	}
25
	}
Line 26... Line 26...
26
 
26
 
27
	public function obtenirDonnees() {
27
	public function obtenirDonnees() {
28
		$donnees = array();
28
		$donnees = array();
-
 
29
		$num_nom = $this->nomCourant->getNns();
-
 
30
 
Line 29... Line 31...
29
		$num_nom = $this->nomCourant->getNns();
31
		$nom = $this->conteneur->getApiNoms()->getNom($num_nom);
30
		
32
		
31
		$blocs = array(
33
		$blocs = array(
32
			'illustrations', // grep-friendly: new Illustrations()
34
			'illustrations', // grep-friendly: new Illustrations()
Line 39... Line 41...
39
			'ecologie' // grep-friendly: new Ecologie()
41
			'ecologie' // grep-friendly: new Ecologie()
40
		);
42
		);
41
		$cache = array();
43
		$cache = array();
Line 42... Line 44...
42
		
44
		
43
		$nt = $this->conteneur->getNomCourant()->getNomRetenu()->get('num_taxonomique');
45
		$nt = $this->conteneur->getNomCourant()->getNomRetenu()->get('num_taxonomique');
44
		$donnees['infos'] = array('referentiel' => $this->conteneur->getParametre('referentiel'), 'num_tax' => $nt);
46
		$donnees['infos'] = array('referentiel' => $this->conteneur->getParametre('referentiel'), 'num_tax' => $nt, 'nom_sci' => $nom['nom_complet']);
45
		$referentiel = $this->conteneur->getParametre('referentiel');
47
		$referentiel = $this->conteneur->getParametre('referentiel');
46
		foreach ($blocs as $bloc) {
48
		foreach ($blocs as $bloc) {
47
			// TODO: unserialize() pourrait aussi légitimement retourner FALSE
49
			// TODO: unserialize() pourrait aussi légitimement retourner FALSE
48
			$cache_bloc = unserialize($this->conteneur->getCache()->charger($bloc.'/bloc/'.$referentiel.'_'.$num_nom));
50
			$cache_bloc = unserialize($this->conteneur->getCache()->charger($bloc.'/bloc/'.$referentiel.'_'.$num_nom));