Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 141 | Rev 219 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
71 delphine 1
<?php
2
// declare(encoding='UTF-8');
3
/**
4
 * Classe mère du module Liste.
5
 *
6
 * @category	PHP 5.2
7
 * @package		eflore-consultation
8
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @author		Delphine CAUQUIL <delphine@tela-botanica.org>
10
 * @copyright	2011 Tela-Botanica
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
13
 * @version		$Id$
14
 */
15
class Fiche extends aControleur {
216 delphine 16
	public function initialiser() {
17
		$this->capturerParametres();
18
	}
71 delphine 19
 
20
	public function executerActionParDefaut() {
21
		$this->executerFiche();
22
	}
23
 
141 delphine 24
	public function executerFiche(){
216 delphine 25
		$donnees_recherche = array('type_nom' => $this->type_nom, 'nom' => $this->nom);
26
		$this->executerAction('Recherche', 'executerAccueil', $donnees_recherche);
27
		$this->setSortie(self::RENDU_CORPS, $this->getVue('fiche_accueil'), true);
71 delphine 28
	}
216 delphine 29
 
30
	private function capturerParametres() {
31
		if (isset($_GET['nom'])) {
32
			$this->nom = $_GET['nom'];
33
		}
34
		if (isset($_GET['type_nom'])) {
35
			$this->type_nom = $_GET['type_nom'];
36
		}
37
 
38
		if (isset($_GET['niveau'])) {
39
			Registre::set('parametres.niveau', $_GET['niveau']);
40
		}
41
	}
71 delphine 42
}
43
?>