Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 272 Rev 333
Line 11... Line 11...
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
12
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
12
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
13
 * @version		$Id$
13
 * @version		$Id$
14
 */
14
 */
15
class Classification extends aControleur {
15
class Classification extends aControleur {
-
 
16
	
-
 
17
	private $conteneur = null;
-
 
18
	private $nomCourant = null;
-
 
19
	private $taxons = null;
-
 
20
 
-
 
21
	public function __construct(Conteneur $conteneur) {
-
 
22
		$this->conteneur = $conteneur;
-
 
23
		$this->nomCourant = $this->conteneur->getNomCourant();
-
 
24
		$this->taxons = $this->conteneur->getApiTaxons();
-
 
25
		$this->meta = $this->conteneur->getApiMetaDonnees();
-
 
26
		$this->appUrls = $this->conteneur->getAppUrls();
-
 
27
	}
-
 
28
 
16
	public function obtenirDonnees($num_nom) {
29
	public function obtenirDonnees() {
-
 
30
		$donnees['taxons_sup'] = $this->getTaxonsSuperieurs();
-
 
31
		$donnees['taxons_inf'] = $this->getTaxonsInferieurs();
-
 
32
		$this->meta->setProjet('bdtfx');
-
 
33
		$meta = $this->meta->getMetaDonnees();
-
 
34
		$titreMeta = $meta[0]['titre'];
17
		$donnees = null;
35
		$donnees['meta']['titre'] = $titreMeta;
-
 
36
		$donnees['meta']['url'] = $this->appUrls->obtenirUrlMetaDonnees('bdtfx');
-
 
37
		
18
		return $donnees;
38
		return $donnees;
19
	}
39
	}
-
 
40
	
-
 
41
	private function getTaxonsInferieurs() {
-
 
42
		$num_nom = $this->nomCourant->getNomRetenu()->get('id');
-
 
43
		$resultat = $this->taxons->getTaxonsInf($num_nom);
-
 
44
		
-
 
45
		return $resultat[$num_nom];
-
 
46
	}
-
 
47
	
-
 
48
	private function getTaxonsSuperieurs() {
-
 
49
		$num_nom = $this->nomCourant->getNomRetenu()->get('id');
-
 
50
		$resultat = $this->taxons->getTaxonsSup($num_nom);
-
 
51
		
-
 
52
		return $resultat[$num_nom];
-
 
53
	}
20
}
54
}
21
?>
55
?>
22
56