24,7 → 24,9 |
public function executerFiche(){ |
$donnees_recherche = array('type_nom' => $this->type_nom, 'nom' => $this->nom); |
$this->executerAction('Recherche', 'executerAccueil', $donnees_recherche); |
$this->setSortie(self::RENDU_CORPS, $this->getVue('fiche_accueil'), true); |
$blocs_niveaux = $this->recupererTableauConfig('blocs_fiche_defaut'); |
$donnees['blocs'] = '"'.str_replace('|', '","', $blocs_niveaux[Registre::get('parametres.niveau')]).'"'; |
$this->setSortie(self::RENDU_CORPS, $this->getVue('fiche_accueil', $donnees), true); |
} |
|
private function capturerParametres() { |
39,5 → 41,20 |
Registre::set('parametres.niveau', $_GET['niveau']); |
} |
} |
|
protected function recupererTableauConfig($param) { |
$tableau = array(); |
$tableauPartiel = explode(',', Config::get($param)); |
$tableauPartiel = array_map('trim', $tableauPartiel); |
foreach ($tableauPartiel as $champ) { |
if (strpos($champ, '=') === false) { |
$tableau[] = $champ; |
} else { |
list($cle, $val) = explode('=', $champ); |
$tableau[$cle] = $val; |
} |
} |
return $tableau; |
} |
} |
?> |