Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 380 Rev 385
Line 25... Line 25...
25
		$this->meta = $this->conteneur->getApiMetaDonnees();
25
		$this->meta = $this->conteneur->getApiMetaDonnees();
26
		$this->appUrls = $this->conteneur->getAppUrls();
26
		$this->appUrls = $this->conteneur->getAppUrls();
27
	}
27
	}
Line 28... Line 28...
28
	
28
	
29
	public function getBloc() {
29
	public function getBloc() {
30
		$donnees['taxons_sup'] = $this->getTaxonsSuperieurs();
30
		$donnees['taxons_sup'] = $this->nomCourant->taxons_sup;
Line 31... Line 31...
31
		$donnees['taxons_inf'] = $this->getTaxonsInferieurs();
31
		$donnees['taxons_inf'] = $this->getTaxonsInferieurs();
32
		
32
		
Line 33... Line 33...
33
		$donnees['taxons_sup'] = is_array($donnees['taxons_sup']) ? array_slice($donnees['taxons_sup'], 0 , 3) : array();
33
		$donnees['taxons_sup'] = is_array($donnees['taxons_sup']) ? array_slice($donnees['taxons_sup'], -3 , 3) : array();
34
		$donnees['taxons_inf'] = is_array($donnees['taxons_inf']) ? array_slice($donnees['taxons_inf'], 0 , 3) : array();
34
		$donnees['taxons_inf'] = is_array($donnees['taxons_inf']) ? array_slice($donnees['taxons_inf'], 0 , 3) : array();
Line 54... Line 54...
54
		$resultat = $this->taxons->getTaxonsInf($num_nom);
54
		$resultat = $this->taxons->getTaxonsInf($num_nom);
Line 55... Line 55...
55
		
55
		
56
		return $resultat[$num_nom];
56
		return $resultat[$num_nom];
Line 57... Line -...
57
	}
-
 
58
	
-
 
59
	private function getTaxonsSuperieurs() {
-
 
60
		$num_nom = $this->nomCourant->getNomRetenu()->get('id');
-
 
61
		$resultat = $this->nomCourant->getNomRetenu()->get('taxonsSup');
-
 
62
		
-
 
63
		return $resultat[$num_nom];
57
	}
64
	}
58
	
65
}
59
}