private static function getPluginPaths($bReverseOrder = false) { if (self::$PLUGINS === null) { self::$PLUGINS = array_map(function ($oPart) { return MAIN_DIR . '/' . $oPart->getPrefix(); }, PluginPart::allPlugins()); } if ($bReverseOrder === true) { return array_reverse(self::$PLUGINS); } return self::$PLUGINS; }