Метод |
Описание |
|
__construct ( array $config = [] ) |
Public constructor. Initialises the protected members as well. Useful $config keys:
update_component The component name, e.g. com_foobar
update_version The default version if the manifest cache is unreadable
update_site The URL to the component's update XML stream
update_extraquery The extra query to append to (commercial) components' download URLs
update_sitename The update site's name (description) |
|
getUpdateSiteIds ( ) : mixed |
Gets the update site Ids for our extension. |
|
getUpdates ( boolean $force = false ) : array |
Retrieves the update information of the component, returning an array with the following keys: |
|
getVersion ( ) : string |
Get the currently installed version as reported by the #__extensions table |
|
refreshUpdateSite ( ) : void |
Refreshes the Joomla! update sites for this extension as needed |
|
removeObsoleteUpdateSites ( ) |
Removes any update sites which go by the same name or the same location as our update site but do not match the
extension ID. |
|
setVersion ( string $version ) |
Override the currently installed version as reported by the #__extensions table |
|