/** * Forgets a loaded plugin or all of them if first parameter is null * * @param string $plugin name of the plugin to forget * @return void */ public static function unload($plugin = null) { if (is_null($plugin)) { self::$_plugins = array(); } else { unset(self::$_plugins[$plugin]); } }