public static function unregisterAll($eventName = null) { if (is_null($eventName)) { self::$_plugins = array(); } else { unset(self::$_plugins[$eventName]); } }