2010-moteur-site-simple/__cms__/modules/modules.php
2010-08-02 06:15:32 +02:00

23 lines
501 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) {
// TODO
call_user_func(array(self::get_module($chemin), "get_liste_paramètres"));
return ;
}
}
?>