Example #1
0
 /**
  * Reads a "collection" XML update source and picks the correct source URL
  * for the extension update source.
  *
  * @param   string $url      The collection XML update source URL to read from
  * @param   string $jVersion Joomla! version to fetch updates for, or null to use JVERSION
  *
  * @return  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);
 }