New file |
0,0 → 1,59 |
<?php |
// declare(encoding='UTF-8'); |
/** |
* Classe de gestion des epeces. |
* |
* @package Collection |
* @category Php 5.2 |
* @author Aurélien PERONNET <aurelien@tela-botanica.org> |
* @copyright 2010 Tela-Botanica |
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL |
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL |
* @version SVN: $Id: Espece.php 152 2010-09-06 16:19:12Z jpm $ |
*/ |
class Espece extends aControleur { |
|
private $id_espece_en_cours = null; |
|
public function __construct() { |
|
parent::__construct(); |
$this->initialiser(); |
} |
|
public function initialiser() { |
|
$this->id_espece_en_cours = $_GET['$id_espece']; |
$this->setNavigation(); |
} |
|
private function setNavigation() { |
$station = new Station(); |
$this->setSortie(self::RENDU_NAVIGATION, $station->construireMenuNavigation()); |
} |
|
public function executerActionParDefaut() { |
return $this->afficherFormulaireSaisieIndividu(); |
} |
|
// +---------------------------------------------------------------------------------------------------------------+ |
// METHODES D'AFFICHAGE DE FORMULAIRE |
public function afficherFormulaireSaisieEspece() { |
|
$donnees = array(); |
|
$espece_dao = new EspeceDao(); |
$donnees['types'] = $espece_dao->getListeEspecesParType(); |
|
$formulaire = $this->getVue('formulaires/espece_saisie',$donnees); |
$this->setSortie(self::RENDU_CORPS, $formulaire); |
} |
|
public function getListeEvenementPourEspece($id_espece) { |
|
$evenementDao = new EvenementDao(); |
$liste_evenements = $evenementDao->getListeEvenementPourEspece($id_espece); |
|
return $liste_evenements; |
} |
} |