Line 14... |
Line 14... |
14 |
*/
|
14 |
*/
|
15 |
class Resultat extends aControleur {
|
15 |
class Resultat extends aControleur {
|
Line 16... |
Line 16... |
16 |
|
16 |
|
17 |
private $parametres = null;
|
17 |
private $parametres = null;
|
- |
|
18 |
private $resultats = null;
|
Line 18... |
Line 19... |
18 |
private $resultats = null;
|
19 |
private $donneesTpl = array();
|
19 |
|
20 |
|
20 |
public function initialiser() {
|
21 |
public function initialiser() {
|
21 |
spl_autoload_register(array($this, 'chargerClassesResultat'));
|
22 |
spl_autoload_register(array($this, 'chargerClassesResultat'));
|
Line 49... |
Line 50... |
49 |
public function executerActionParDefaut() {
|
50 |
public function executerActionParDefaut() {
|
50 |
$this->executerResultat();
|
51 |
$this->executerResultat();
|
51 |
}
|
52 |
}
|
Line 52... |
Line 53... |
52 |
|
53 |
|
- |
|
54 |
public function executerResultat() {
|
- |
|
55 |
$this->chargerInfosPourOnglets();
|
53 |
public function executerResultat() {
|
56 |
$this->chargerNbreDeTaxons();
|
- |
|
57 |
$this->chargerNomsFormates();
|
- |
|
58 |
|
- |
|
59 |
$this->setSortie(self::RENDU_CORPS, $this->getVue('resultat', $this->donneesTpl));
|
- |
|
60 |
}
|
- |
|
61 |
|
54 |
$donnees = array();
|
62 |
private function chargerInfosPourOnglets() {
|
55 |
$donnees['typeResultat'] = $this->parametres->type;
|
63 |
$this->donneesTpl['typeResultat'] = $this->parametres->type;
|
56 |
$donnees['urlResAlphab'] = $this->obtenirUrlResultatAlphab();
|
64 |
$this->donneesTpl['urlResAlphab'] = $this->obtenirUrlResultatAlphab();
|
57 |
$donnees['urlResRetenu'] = $this->obtenirUrlResultatRetenu();
|
65 |
$this->donneesTpl['urlResRetenu'] = $this->obtenirUrlResultatRetenu();
|
58 |
$donnees['urlResDetermination'] = $this->obtenirUrlResultatDetermination();
|
66 |
$this->donneesTpl['urlResDetermination'] = $this->obtenirUrlResultatDetermination();
|
59 |
$donnees['urlResDecompo'] = $this->obtenirUrlResultatDecompo();
|
- |
|
60 |
$donnees['nbreTaxons'] = $this->resultats['entete']['total'];
|
- |
|
- |
|
67 |
$this->donneesTpl['urlResDecompo'] = $this->obtenirUrlResultatDecompo();
|
61 |
$donnees['nomsHtml'] = $this->getNomsFormates();
|
68 |
}
|
- |
|
69 |
|
62 |
|
70 |
private function chargerNbreDeTaxons() {
|
63 |
$this->setSortie(self::RENDU_CORPS, $this->getVue('resultat', $donnees));
|
71 |
$this->donneesTpl['nbreTaxons'] = $this->resultats['entete']['total'];
|
64 |
}
|
72 |
}
|
65 |
|
73 |
|
- |
|
74 |
private function chargerNomsFormates() {
|
66 |
private function getNomsFormates() {
|
75 |
if (Config::get('benchmark_chrono')) Chronometre::chrono("Avt mise en forme des noms");
|
- |
|
76 |
$formateur = ResultatFormateurFabrique::creer($this->parametres, $this->resultats);
|
67 |
$resultatFormateur = ResultatFormateurFabrique::creer($this->parametres, $this->resultats);
|
77 |
if (Config::get('benchmark_chrono')) Chronometre::chrono("Avt formatage des noms");
|
- |
|
78 |
$formateur->formater();
|
68 |
$resultatFormateur->formater();
|
79 |
if (Config::get('benchmark_chrono')) Chronometre::chrono("Avt triage des noms");
|
- |
|
80 |
$formateur->trier();
|
69 |
$resultatFormateur->trier();
|
81 |
if (Config::get('benchmark_chrono')) Chronometre::chrono("Avt surlignage des noms");
|
- |
|
82 |
$formateur->surligner();
|
70 |
$resultatFormateur->surligner();
|
83 |
if (Config::get('benchmark_chrono')) Chronometre::chrono("Avt création de la vue");
|
71 |
$html = $this->getVue($resultatFormateur->getTplNom(), $resultatFormateur->getTplInfos());
|
84 |
$this->donneesTpl['nomsHtml'] = $this->getVue($formateur->getTplNom(), $formateur->getTplInfos());
|
72 |
return $html;
|
85 |
if (Config::get('benchmark_chrono')) Chronometre::chrono("Après mise en forme des noms");
|
73 |
}
|
86 |
}
|
74 |
}
|
87 |
}
|
75 |
?>
|
88 |
?>
|