1,28 → 1,28 |
<?php |
class RechercheSimple extends aControleur { |
|
|
//+----------------------------------------------------------------------------------------------------------------+ |
// Méthodes |
/** |
* Fonction d'affichage par défaut |
*/ |
|
|
|
|
public function executerActionParDefaut() { |
$this->executerAccueil(); |
} |
|
|
public function executerAccueil() { |
$donnees = array(); |
$donnees['form_nom'] = $this->executerFormulaireNom(); |
$this->afficherAccueil($donnees); |
} |
|
|
private function afficherAccueil($donnees) { |
$donnees['i18n'] = I18n::get('Recherche-accueil'); |
$donnees['i18n'] = I18n::get('Recherche-accueil'); |
$this->setSortie(self::RENDU_CORPS, $this->getVue('recherche_accueil', $donnees)); |
} |
|
|
public function executerFormulaireNom($donnees = array()) { |
if (Config::get(Registre::get('parametres.referentiel').'.referentielVerna')) { |
if (!isset($donnees['type_nom'])) { |
30,12 → 30,13 |
} |
$donnees['nom_verna'] = true; |
} |
|
|
$donnees['url_form'] = $this->obtenirUrlBase(); |
$donnees['i18n'] = I18n::get('Recherche-form-nom'); |
|
|
return $this->getVue('form_nom', $donnees); |
} |
|
|
public function executerForm() { |
$donnees = Registre::get('donneesMoteur'); |
$donnees['form_nom'] = $this->executerFormulaireNom($donnees); |
42,8 → 43,8 |
$this->afficherAccueil($donnees); |
Registre::detruire('donneesMoteur'); |
} |
|
|
|
|
|
} |
?> |