Property | Type | Description | |
---|---|---|---|
$component | The name of the component e.g. com_something | ||
$extension_id | The extension_id of this component | ||
$extraQuery | The extra query to append to (commercial) components' download URLs | ||
$updateSite | The URL to the component's update XML stream | ||
$updateSiteName | The name to the component's update site (description of the update XML stream) | ||
$updater | The Joomla! updater object | ||
$version | The currently installed version, as reported by the #__extensions table |
Method | Description | |
---|---|---|
__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 |
public __construct ( array $config = [] ) | ||
$config | array |
public getUpdateSiteIds ( ) : mixed | ||
return | mixed | An array of Ids or null if the query failed. |
public getUpdates ( boolean $force = false ) : array | ||
$force | boolean | Set to true if you want to forcibly reload the update information |
return | array | See the method description for more information |
public getVersion ( ) : string | ||
return | string |
public refreshUpdateSite ( ) : void | ||
return | void |
public removeObsoleteUpdateSites ( ) |
public setVersion ( string $version ) | ||
$version | string |
protected $extraQuery |
protected $updateSite |
protected $updateSiteName |