fonction Modules::get_liste_paramètres()

This commit is contained in:
Georges Dupéron 2010-08-02 06:15:32 +02:00
parent e0e55ce46a
commit fbf3433fc2
2 changed files with 4 additions and 3 deletions

View File

@ -15,7 +15,7 @@ class CMS {
// TODO : appeller Modules::action($chemin, $action, $paramètres); // TODO : appeller Modules::action($chemin, $action, $paramètres);
$chemin = new Chemin($chemin_str); $chemin = new Chemin($chemin_str);
$noms_params = Modules::liste_paramètres($chemin); $noms_params = Modules::get_liste_paramètres($chemin);
$noms_params[] = "action"; $noms_params[] = "action";
// récupérer $noms_params dans $_GET, $_POST et $_FILE // récupérer $noms_params dans $_GET, $_POST et $_FILE
$action = $paramètres["action"]; $action = $paramètres["action"];

View File

@ -13,9 +13,10 @@ class Modules {
return self::$liste_modules[$type]; return self::$liste_modules[$type];
} }
public static function liste_paramètres($chemin) { public static function get_liste_paramètres($chemin) {
// TODO // TODO
return self::get_module($chemin); call_user_func(array(self::get_module($chemin), "get_liste_paramètres"));
return ;
} }
} }