Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 422 | Rev 762 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
// declare(encoding='UTF-8');
/**
 * Classe Onglet Synthese.
 *
 * @category    PHP 5.2
 * @package             eflore-consultation
 * @author              Jean-Pascal MILCENT <jpm@tela-botanica.org>
 * @author              Delphine CAUQUIL <delphine@tela-botanica.org>
 * @author              Grégoire DUCHÉ <gregoire@tela-botanica.org>
 * @copyright   2011 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$
 */
class Synthese extends aControleur {

        private $conteneur = null;
        private $nomCourant = null;

        public function __construct(Conteneur $conteneur) {
                $this->conteneur = $conteneur;
                $this->nomCourant = $this->conteneur->getNomCourant();
        }

        public function obtenirDonnees() {
                $donnees = array();
                
                $nt = $this->conteneur->getNomCourant()->getNomRetenu()->get('num_taxonomique');
                $donnees['infos'] = array('referentiel' => $this->conteneur->getParametre('referentiel'), 'num_tax' => $nt);
                $illustrations = new Illustrations($this->conteneur);
                $donnees['illustration'] = $illustrations->getBloc();
                $repartition = new Repartition($this->conteneur);
                $donnees['repartition'] = $repartition->getBloc();
                $nomenclature = new Nomenclature($this->conteneur);
                $donnees['nomenclature'] = $nomenclature->getBloc();
                $description = new Description($this->conteneur);
                $donnees['description'] = $description->getBloc();
                $ethnobotanique = new Ethnobotanique($this->conteneur);
                $donnees['ethnobotanique'] = $ethnobotanique->getBloc();
                $classification = new Classification($this->conteneur);
                $donnees['classification'] = $classification->getBloc();
                $bibliographie = new Bibliographie($this->conteneur);
                $donnees['bibliographie'] = $bibliographie->getBloc();
                $statut = new Statut($this->conteneur);
                $donnees['statut'] = $statut->obtenirDonnees();
                $ecologie = new Ecologie($this->conteneur);
                $donnees['ecologie'] = $ecologie->getBloc();
                return $donnees;
        }

}
?>