31 |
aurelien |
1 |
<?php
|
|
|
2 |
// declare(encoding='UTF-8');
|
|
|
3 |
/**
|
|
|
4 |
* Classe de gestion des epeces.
|
|
|
5 |
*
|
|
|
6 |
* @package Collection
|
|
|
7 |
* @category Php 5.2
|
|
|
8 |
* @author Aurélien PERONNET <aurelien@tela-botanica.org>
|
|
|
9 |
* @copyright 2010 Tela-Botanica
|
|
|
10 |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
|
|
|
11 |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
|
|
|
12 |
* @version SVN: $Id: Espece.php 152 2010-09-06 16:19:12Z jpm $
|
|
|
13 |
*/
|
|
|
14 |
class Espece extends aControleur {
|
|
|
15 |
|
|
|
16 |
private $id_espece_en_cours = null;
|
|
|
17 |
|
|
|
18 |
public function __construct() {
|
|
|
19 |
|
|
|
20 |
parent::__construct();
|
|
|
21 |
$this->initialiser();
|
|
|
22 |
}
|
|
|
23 |
|
|
|
24 |
public function initialiser() {
|
|
|
25 |
|
|
|
26 |
$this->id_espece_en_cours = $_GET['$id_espece'];
|
|
|
27 |
$this->setNavigation();
|
|
|
28 |
}
|
|
|
29 |
|
|
|
30 |
private function setNavigation() {
|
|
|
31 |
$station = new Station();
|
|
|
32 |
$this->setSortie(self::RENDU_NAVIGATION, $station->construireMenuNavigation());
|
|
|
33 |
}
|
|
|
34 |
|
|
|
35 |
public function executerActionParDefaut() {
|
|
|
36 |
return $this->afficherFormulaireSaisieIndividu();
|
|
|
37 |
}
|
|
|
38 |
|
|
|
39 |
// +---------------------------------------------------------------------------------------------------------------+
|
|
|
40 |
// METHODES D'AFFICHAGE DE FORMULAIRE
|
|
|
41 |
public function afficherFormulaireSaisieEspece() {
|
|
|
42 |
|
|
|
43 |
$donnees = array();
|
|
|
44 |
|
|
|
45 |
$espece_dao = new EspeceDao();
|
|
|
46 |
$donnees['types'] = $espece_dao->getListeEspecesParType();
|
|
|
47 |
|
|
|
48 |
$formulaire = $this->getVue('formulaires/espece_saisie',$donnees);
|
|
|
49 |
$this->setSortie(self::RENDU_CORPS, $formulaire);
|
|
|
50 |
}
|
|
|
51 |
|
|
|
52 |
public function getListeEvenementPourEspece($id_espece) {
|
|
|
53 |
|
|
|
54 |
$evenementDao = new EvenementDao();
|
|
|
55 |
$liste_evenements = $evenementDao->getListeEvenementPourEspece($id_espece);
|
|
|
56 |
|
|
|
57 |
return $liste_evenements;
|
|
|
58 |
}
|
|
|
59 |
}
|