Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev Author Line No. Line
33 jpm 1
<?php
2
class RechercheSimple extends aControleur {
3
 
4
	public function __construct()  {
34 jpm 5
		parent::__construct($this);
33 jpm 6
	}
7
 
8
	//+----------------------------------------------------------------------------------------------------------------+
9
	// Méthodes
10
	/**
11
	 * Fonction d'affichage par défaut
12
	 */
13
	public function executerActionParDefaut() {
14
		$this->executerAccueil();
15
	}
16
 
17
	public function executerAccueil() {
18
		$donnees = array();
19
		$donnees['i18n'] = I18n::get('Recherche-accueil');
20
 
21
		$donnees['referentiel_titre'] = I18n::get('Referentiels-titres.'.Config::get('referentiel'));
22
 
23
		$donnees['form_nom'] = $this->executerFormulaireNom();
24
		$donnees['form_taxon'] = $this->executerFormulaireTaxon();
25
 
26
		$this->setSortie(self::RENDU_CORPS, $this->getVue('recherche_accueil', $donnees));
27
	}
28
 
29
	public function executerFormulaireNom() {
30
		$donnees['i18n'] = I18n::get('Recherche-form-nom');
31
		$donnees['url_js'] = Config::get('url_js');
32
 
33
		return $this->getVue('form_nom', $donnees);
34
	}
35
 
36
	public function executerFormulaireTaxon() {
37
		return 'test';
38
	}
39
}
40
?>