Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 141 Rev 216
1
<?php
1
<?php
2
// declare(encoding='UTF-8');
2
// declare(encoding='UTF-8');
3
/**
3
/**
4
 * Classe mère du module Liste.
4
 * Classe mère du module Liste.
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
 * @copyright	2011 Tela-Botanica
10
 * @copyright	2011 Tela-Botanica
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
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
12
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
13
 * @version		$Id$
13
 * @version		$Id$
14
 */
14
 */
15
class Fiche extends aControleur {
15
class Fiche extends aControleur {
-
 
16
	public function initialiser() {
-
 
17
		$this->capturerParametres();
-
 
18
	}
16
	
19
	
17
	public function executerActionParDefaut() {
20
	public function executerActionParDefaut() {
18
		$this->executerFiche();
21
		$this->executerFiche();
19
	}
22
	}
20
	
23
	
21
	public function executerFiche(){
24
	public function executerFiche(){
-
 
25
		$donnees_recherche = array('type_nom' => $this->type_nom, 'nom' => $this->nom);
-
 
26
		$this->executerAction('Recherche', 'executerAccueil', $donnees_recherche);
22
		$this->setSortie(self::RENDU_CORPS, $this->getVue('fiche_accueil'));
27
		$this->setSortie(self::RENDU_CORPS, $this->getVue('fiche_accueil'), true);
-
 
28
	}
-
 
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
		}
23
	}
41
	}
24
}
42
}
25
?>
43
?>