PHP Класс FOF30\Update\Update

Наследование: extends FOF30\Model\Model
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__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

Описание методов

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

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)
public __construct ( array $config = [] )
$config array

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

Gets the update site Ids for our extension.
public getUpdateSiteIds ( ) : mixed
Результат mixed An array of Ids or null if the query failed.

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

hasUpdate True if an update is available version The version of the available update infoURL The URL to the download page of the update
public getUpdates ( boolean $force = false ) : array
$force boolean Set to true if you want to forcibly reload the update information
Результат array See the method description for more information

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

Get the currently installed version as reported by the #__extensions table
public getVersion ( ) : string
Результат string

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

Refreshes the Joomla! update sites for this extension as needed
public refreshUpdateSite ( ) : void
Результат void

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() публичный Метод

Override the currently installed version as reported by the #__extensions table
public setVersion ( string $version )
$version string

Описание свойств

$component защищенное свойство

The name of the component e.g. com_something
protected $component

$extension_id защищенное свойство

The extension_id of this component
protected $extension_id

$extraQuery защищенное свойство

The extra query to append to (commercial) components' download URLs
protected $extraQuery

$updateSite защищенное свойство

The URL to the component's update XML stream
protected $updateSite

$updateSiteName защищенное свойство

The name to the component's update site (description of the update XML stream)
protected $updateSiteName

$updater защищенное свойство

The Joomla! updater object
protected $updater

$version защищенное свойство

The currently installed version, as reported by the #__extensions table
protected $version