Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 389 | Rev 559 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 389 Rev 422
1
<?php
1
<?php
2
// declare(encoding='UTF-8');
2
// declare(encoding='UTF-8');
3
/**
3
/**
4
 * Classe Onglet Synthese.
4
 * Classe Onglet Synthese.
5
 *
5
 *
6
 * @category	PHP 5.2
6
 * @category	PHP 5.2
7
 * @package		eflore-consultation
7
 * @package		eflore-consultation
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @author		Delphine CAUQUIL <delphine@tela-botanica.org>
9
 * @author		Delphine CAUQUIL <delphine@tela-botanica.org>
10
 * @author		Grégoire DUCHÉ <gregoire@tela-botanica.org>
10
 * @author		Grégoire DUCHÉ <gregoire@tela-botanica.org>
11
 * @copyright	2011 Tela-Botanica
11
 * @copyright	2011 Tela-Botanica
12
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
12
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
13
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
13
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
14
 * @version		$Id$
14
 * @version		$Id$
15
 */
15
 */
16
class Synthese extends aControleur {
16
class Synthese extends aControleur {
17
 
17
 
18
	private $conteneur = null;
18
	private $conteneur = null;
19
	private $nomCourant = null;
19
	private $nomCourant = null;
20
 
20
 
21
	public function __construct(Conteneur $conteneur) {
21
	public function __construct(Conteneur $conteneur) {
22
		$this->conteneur = $conteneur;
22
		$this->conteneur = $conteneur;
23
		$this->nomCourant = $this->conteneur->getNomCourant();
23
		$this->nomCourant = $this->conteneur->getNomCourant();
24
	}
24
	}
25
 
25
 
26
	public function obtenirDonnees() {
26
	public function obtenirDonnees() {
27
		$donnees = array();
27
		$donnees = array();
28
		
28
		
29
		$nt = $this->conteneur->getNomCourant()->getNomRetenu()->get('num_taxonomique');
29
		$nt = $this->conteneur->getNomCourant()->getNomRetenu()->get('num_taxonomique');
30
		$donnees['infos'] = array('referentiel' => $this->conteneur->getParametre('referentiel'), 'num_tax' => $nt);
30
		$donnees['infos'] = array('referentiel' => $this->conteneur->getParametre('referentiel'), 'num_tax' => $nt);
31
		$illustrations = new Illustrations($this->conteneur);
31
		$illustrations = new Illustrations($this->conteneur);
32
		$donnees['illustration'] = $illustrations->getBloc();
32
		$donnees['illustration'] = $illustrations->getBloc();
33
		$repartition = new Repartition($this->conteneur);
33
		$repartition = new Repartition($this->conteneur);
34
		$donnees['repartition'] = $repartition->getBloc();
34
		$donnees['repartition'] = $repartition->getBloc();
35
		$nomenclature = new Nomenclature($this->conteneur);
35
		$nomenclature = new Nomenclature($this->conteneur);
36
		$donnees['nomenclature'] = $nomenclature->getBloc();
36
		$donnees['nomenclature'] = $nomenclature->getBloc();
37
		$description = new Description($this->conteneur);
37
		$description = new Description($this->conteneur);
38
		$donnees['description'] = $description->getBloc();
38
		$donnees['description'] = $description->getBloc();
39
		$ethnobotanique = new Ethnobotanique($this->conteneur);
39
		$ethnobotanique = new Ethnobotanique($this->conteneur);
40
		$donnees['ethnobotanique'] = $ethnobotanique->getBloc();
40
		$donnees['ethnobotanique'] = $ethnobotanique->getBloc();
41
		$classification = new Classification($this->conteneur);
41
		$classification = new Classification($this->conteneur);
42
		$donnees['classification'] = $classification->getBloc();
42
		$donnees['classification'] = $classification->getBloc();
43
		$bibliographie = new Bibliographie($this->conteneur);
43
		$bibliographie = new Bibliographie($this->conteneur);
44
		$donnees['bibliographie'] = $bibliographie->getBloc();
44
		$donnees['bibliographie'] = $bibliographie->getBloc();
-
 
45
		$statut = new Statut($this->conteneur);
-
 
46
		$donnees['statut'] = $statut->obtenirDonnees();
-
 
47
		$ecologie = new Ecologie($this->conteneur);
-
 
48
		$donnees['ecologie'] = $ecologie->obtenirDonnees();
45
		return $donnees;
49
		return $donnees;
46
	}
50
	}
47
 
51
 
48
}
52
}
49
?>
53
?>