PHP 클래스 Piwik\Plugins\CoreUpdater\Updater

파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

공개 메소드들

메소드 설명
__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.

비공개 메소드들

메소드 설명
decompressArchive ( $archiveFile )
disableIncompatiblePlugins ( $version )
downloadArchive ( $version, $url )
getIncompatiblePlugins ( $piwikVersion )
installNewFiles ( $extractedArchiveDirectory )
verifyDecompressedArchive ( $extractedArchiveDirectory )

메소드 상세

__construct() 공개 메소드

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

getArchiveUrl() 공개 메소드

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.
리턴 string

getLatestVersion() 공개 메소드

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

isNewVersionAvailable() 공개 메소드

public isNewVersionAvailable ( ) : boolean
리턴 boolean

isUpdatingOverHttps() 공개 메소드

public isUpdatingOverHttps ( ) : boolean
리턴 boolean

updatePiwik() 공개 메소드

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.
리턴 string[] Return an array of messages for the user.