14,10 → 14,22 |
* Fonction d'affichage par défaut |
*/ |
public function executerActionParDefaut() { |
$this->executerAction('RechercheSimple', 'executerAccueil'); |
$this->executerAccueil(); |
} |
|
public function executerAccueil($donnees = array()) { |
$niveau = new Niveau(); |
$donnees['form_niveau'] = $niveau->afficherNiveau(); |
$recherchesimple = new RechercheSimple(); |
$donnees['form_nom'] = $recherchesimple->executerFormulaireNom(); |
$this->afficherAccueil($donnees); |
} |
|
private function afficherAccueil($donnees) { |
$donnees['i18n'] = I18n::get('Recherche-accueil'); |
$this->setSortie(self::RENDU_CORPS, $this->getVue('recherche_accueil', $donnees)); |
} |
|
public function executerRechercheSimple() { |
$donnees['type_nom'] = $this->type_nom; |
$donnees['nom'] = $this->nom; |
34,8 → 46,7 |
$donnees['message']['nom_approche'] = $presence; |
} |
} |
Registre::set('donneesMoteur', $donnees); |
$this->executerAction('RechercheSimple', 'executerForm'); |
$this->executerAccueil($donnees); |
if (Registre::get('resultats')) { |
$this->executerAction('Resultat', 'executerResultat'); |
} |
80,6 → 91,11 |
return $approche; |
} |
|
public function executerNiveau() { |
Registre::set('parametres.niveau', $_GET['niveau']); |
$this->executerActionParDefaut(); |
} |
|
private function capturerParametres() { |
if (isset($_GET['nom'])) { |
$this->nom = $_GET['nom']; |