static function Modules($bundleName, ModuleLocation $location)
    {
        $result = array();
        $modulesFolder = Path::Combine(self::BundleFolder($bundleName), 'Modules');
        $folder = Path::Combine($modulesFolder, (string)$location);
        if (!Folder::Exists($folder)) {
            return $result;
        }
        $files = Folder::GetFiles($folder);
        foreach ($files as $file)
        {
            $result[] = Path::RemoveExtension($file);
        }
        return $result;
    }
static function Modules($bundleName, ModuleLocation $location)
    {
        $result = array();
        $modulesFolder = Path::Combine(self::BundleFolder($bundleName), 'Modules');
        $folder = Path::Combine($modulesFolder, (string)$location);
        if (!Folder::Exists($folder)) {
            return $result;
        }
        $files = Folder::GetFiles($folder);
        foreach ($files as $file)
        {
            $result[] = Path::RemoveExtension($file);
        }
        return $result;
    }
static function Modules ( $ bundleName , ModuleLocation $ location ) { $ result = array ( ) ; $ modulesFolder = Path :: Combine ( self :: BundleFolder ( $ bundleName ) , 'Modules' ) ; $ folder = Path :: Combine ( $ modulesFolder , ( string ) $ location ) ; if ( ! Folder :: Exists ( $ folder ) ) { return $ result ; } $ files = Folder :: GetFiles ( $ folder ) ; foreach ( $ files as $ file ) { $ result [ ] = Path :: RemoveExtension ( $ file ) ; } return $ result ; }
Gets all modules in a bundle
@param string $bundleName
@param ModuleLocation $location Backend or frontend
@return string[] Returns the module names
Gets all modules in a bundle