Subversion Repositories oidplus

Rev

Rev 812 | Rev 825 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 812 Rev 819
Line 466... Line 466...
466
 
466
 
467
        public static function getDesignPlugins() {
467
        public static function getDesignPlugins() {
468
                return self::$designPlugins;
468
                return self::$designPlugins;
469
        }
469
        }
470
 
470
 
-
 
471
        public static function getActiveDesignPlugin() {
-
 
472
                $plugins = OIDplus::getDesignPlugins();
-
 
473
                foreach ($plugins as $plugin) {
-
 
474
                        if ((basename($plugin->getPluginDirectory())) == OIDplus::config()->getValue('design','default')) {
-
 
475
                                return $plugin;
-
 
476
                        }
-
 
477
                }
-
 
478
                return null;
-
 
479
        }
-
 
480
 
471
        # --- Logger plugin
481
        # --- Logger plugin
472
 
482
 
473
        private static function registerLoggerPlugin(OIDplusLoggerPlugin $plugin) {
483
        private static function registerLoggerPlugin(OIDplusLoggerPlugin $plugin) {
474
                self::$loggerPlugins[] = $plugin;
484
                self::$loggerPlugins[] = $plugin;
475
                return true;
485
                return true;