Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 154 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 154 Rev 162
Line 39... Line 39...
39
		}
39
		}
40
	}
40
	}
Line 41... Line 41...
41
 
41
 
42
	private function capturerParametres() {
42
	private function capturerParametres() {
43
		if (isset($_GET['resultat'])) {
43
		if (isset($_GET['resultat'])) {
44
			$this->parametres->type = $_GET['resultat'];
44
			$this->parametres->typeResultat = $_GET['resultat'];
45
		}
45
		}
46
		if (isset($_GET['nom'])) {
46
		if (isset($_GET['nom'])) {
47
			$this->parametres->masqueRecherche = $_GET['nom'];
47
			$this->parametres->masqueRecherche = $_GET['nom'];
-
 
48
		}
-
 
49
		if (isset($_GET['type_nom'])) {
-
 
50
			$this->parametres->typeNom = $_GET['type_nom'];
48
		}
51
		}
Line 49... Line 52...
49
	}
52
	}
50
 
53
 
51
	public function executerActionParDefaut() {
54
	public function executerActionParDefaut() {
Line 52... Line 55...
52
		$this->executerResultat();
55
		$this->executerResultat();
53
	}
56
	}
54
 
57
 
55
	public function executerResultat() {
58
	public function executerResultat() {
Line 56... Line 59...
56
		$this->chargerInfosPourOnglets();
59
		$this->chargerOnglets();
57
		$this->chargerNbreDeTaxons();
60
		$this->chargerNbreDeTaxons();
Line 58... Line 61...
58
		$this->chargerNomsFormates();
61
		$this->chargerNomsFormates();
-
 
62
 
59
 
63
		$this->setSortie(self::RENDU_CORPS, $this->getVue('resultat', $this->donneesTpl));
-
 
64
	}
-
 
65
 
-
 
66
	private function chargerOnglets() {
60
		$this->setSortie(self::RENDU_CORPS, $this->getVue('resultat', $this->donneesTpl));
67
		$donnees = array();
61
	}
68
		$donnees['typeResultat'] = $this->parametres->typeResultat;
62
 
69
		$donnees['typeNom'] = $this->parametres->typeNom;
63
	private function chargerInfosPourOnglets() {
70
		$donnees['ongletsNs'] = array('determination', 'alphab', 'retenu', 'decompo');
-
 
71
		$donnees['ongletsNv'] = array('determination', 'alphab');
-
 
72
		$donnees['urls']['alphab'] = $this->urls->obtenirUrlResultatAlphab();
64
		$this->donneesTpl['typeResultat'] = $this->parametres->type;
73
		$donnees['urls']['retenu'] = $this->urls->obtenirUrlResultatRetenu();
Line 65... Line 74...
65
		$this->donneesTpl['urlResAlphab'] = $this->obtenirUrlResultatAlphab();
74
		$donnees['urls']['determination'] = $this->urls->obtenirUrlResultatDetermination();
66
		$this->donneesTpl['urlResRetenu'] = $this->obtenirUrlResultatRetenu();
75
		$donnees['urls']['decompo'] = $this->urls->obtenirUrlResultatDecompo();
67
		$this->donneesTpl['urlResDetermination'] = $this->obtenirUrlResultatDetermination();
76
		$donnees['i18n'] = I18n::get('Resultat-onglets');