FOF30\Update\Joomla::getUpdateSourceFromCollection PHP Метод

getUpdateSourceFromCollection() публичный Метод

Reads a "collection" XML update source and picks the correct source URL for the extension update source.
public getUpdateSourceFromCollection ( string $url, string $jVersion = null ) : string
$url string The collection XML update source URL to read from
$jVersion string Joomla! version to fetch updates for, or null to use JVERSION
Результат string The URL of the extension update source, or empty if no updates are provided / fetching failed
    public function getUpdateSourceFromCollection($url, $jVersion = null)
    {
        $provider = new Collection();
        return $provider->getExtensionUpdateSource($url, 'file', 'joomla', $jVersion);
    }