Subversion Repositories oidplus

Rev

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

Rev 681 Rev 693
Line 569... Line 569...
569
        }
569
        }
570
 
570
 
571
        /**
571
        /**
572
        * @return array<OIDplusPluginManifest>|array<string,array<string,OIDplusPluginManifest>>
572
        * @return array<OIDplusPluginManifest>|array<string,array<string,OIDplusPluginManifest>>
573
        */
573
        */
574
        public static function getAllPluginManifests($pluginFolderMask='*', $flat=true): array {
574
        public static function getAllPluginManifests($pluginFolderMasks='*', $flat=true): array {
575
                $out = array();
575
                $out = array();
576
                // Note: glob() will sort by default, so we do not need a page priority attribute.
576
                // Note: glob() will sort by default, so we do not need a page priority attribute.
577
                //       So you just need to use a numeric plugin directory prefix (padded).
577
                //       So you just need to use a numeric plugin directory prefix (padded).
-
 
578
                $ary = array();
-
 
579
                foreach (explode(',',$pluginFolderMasks) as $pluginFolderMask) {
578
                $ary = glob(OIDplus::localpath().'plugins/'.'*'.'/'.$pluginFolderMask.'/'.'*'.'/manifest.xml');
580
                        $ary = array_merge($ary,glob(OIDplus::localpath().'plugins/'.'*'.'/'.$pluginFolderMask.'/'.'*'.'/manifest.xml'));
-
 
581
                }
579
 
582
 
580
                // Sort the plugins by their type and name, as if they would be in a single vendor-folder!
583
                // Sort the plugins by their type and name, as if they would be in a single vendor-folder!
581
                uasort($ary, function($a,$b) {
584
                uasort($ary, function($a,$b) {
582
                        if ($a == $b) return 0;
585
                        if ($a == $b) return 0;
583
 
586