PHP Class Piwik\Plugins\CoreUpdater\Updater

Afficher le fichier Open project: piwik/piwik Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Piwik\Translation\Translator $translator, ReleaseChannels $releaseChannels, $tmpPath )
getArchiveUrl ( string $version, boolean $https = true ) : string
getLatestVersion ( ) : false | string Returns the latest available version number. Does not perform a check whether a later version is available.
isNewVersionAvailable ( ) : boolean
isUpdatingOverHttps ( ) : boolean
updatePiwik ( boolean $https = true ) : string[] Update Piwik codebase by downloading and installing the latest version.

Private Methods

Méthode Description
decompressArchive ( $archiveFile )
disableIncompatiblePlugins ( $version )
downloadArchive ( $version, $url )
getIncompatiblePlugins ( $piwikVersion )
installNewFiles ( $extractedArchiveDirectory )
verifyDecompressedArchive ( $extractedArchiveDirectory )

Method Details

__construct() public méthode

public __construct ( Piwik\Translation\Translator $translator, ReleaseChannels $releaseChannels, $tmpPath )
$translator Piwik\Translation\Translator
$releaseChannels Piwik\Plugin\ReleaseChannels

getArchiveUrl() public méthode

public getArchiveUrl ( string $version, boolean $https = true ) : string
$version string
$https boolean Whether to use HTTPS if supported of not. If false, will use HTTP.
Résultat string

getLatestVersion() public méthode

Returns the latest available version number. Does not perform a check whether a later version is available.
public getLatestVersion ( ) : false | string
Résultat false | string

isNewVersionAvailable() public méthode

public isNewVersionAvailable ( ) : boolean
Résultat boolean

isUpdatingOverHttps() public méthode

public isUpdatingOverHttps ( ) : boolean
Résultat boolean

updatePiwik() public méthode

Update Piwik codebase by downloading and installing the latest version.
public updatePiwik ( boolean $https = true ) : string[]
$https boolean Whether to use HTTPS if supported of not. If false, will use HTTP.
Résultat string[] Return an array of messages for the user.