Метод | Описание | |
---|---|---|
getAllUpdates ( string $url, string $jVersion = null ) : array | Reads a "collection" XML update source and returns the complete tree of categories and extensions applicable for platform version $jVersion | |
getCategories ( string $url, string $jVersion = null ) : array | Returns only the category definitions of a collection | |
getCategoryUpdateSource ( string $url, string $category, string $jVersion = null ) : string | null | Returns the update source for a specific category | |
getExtensionUpdateSource ( string $url, string $type, string $element, string $jVersion = null ) : string | null | Get the update source URL for a specific extension, based on the type and element, e.g. | |
getExtensions ( string $url, string $type = null, string $jVersion = null ) : array | null | Get a list of updates for extensions only, optionally of a specific type |
Метод | Описание | |
---|---|---|
filterListByPlatform ( array $updates, string $jVersion = null ) : array | null | Filters a list of updates, returning only those available for the specified platform version $jVersion |
public getCategoryUpdateSource ( string $url, string $category, string $jVersion = null ) : string | null | ||
$url | string | The URL of the collection update source |
$category | string | The category name you want to get the update source URL of |
$jVersion | string | Joomla! version to fetch updates for, or null to use JVERSION |
Результат | string | null | The update stream URL, or null if it's not found |
public getExtensionUpdateSource ( string $url, string $type, string $element, string $jVersion = null ) : string | null | ||
$url | string | The URL of the collection update source |
$type | string | The extension type you want to get the update source URL of |
$element | string | The extension element you want to get the update source URL of |
$jVersion | string | Joomla! version to fetch updates for, or null to use JVERSION |
Результат | string | null | The update source URL or null if the extension is not found |
public getExtensions ( string $url, string $type = null, string $jVersion = null ) : array | null | ||
$url | string | The URL of the collection update source |
$type | string | The extension type you want to get the update source URL of, empty to get all extension types |
$jVersion | string | Joomla! version to fetch updates for, or null to use JVERSION |
Результат | array | null | An array of extension update definitions or null if none is found |