2010-moteur-site-simple/__cms__/modules/modules.php
Georges Dupéron 1553b4ed64 Divers bugs.
2010-08-02 06:59:11 +02:00

24 lines
558 B
PHP

<?php
class Modules {
static $liste_modules = array();
public static function enregister_module($classe, $type) {
self::$liste_modules[$type] = $classe;
}
public static function get_module($chemin) {
$type = Stockage::get_prop($chemin, "type");
if ($type === false) return false;
return self::$liste_modules[$type];
}
public static function get_liste_paramètres($chemin) {
$module = self::get_module($chemin);
if ($module === false) return false;
// TODO
return call_user_func(array($module, "get_liste_paramètres"));;
}
}
?>