PHP Class Piwik\UpdateCheck

显示文件 Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
check ( boolean $force = false, integer $interval = null ) Check for a newer version
getLatestVersion ( ) : false | string Returns the latest available version number. Does not perform a check whether a later version is available.
isNewestVersionAvailable ( ) : string | boolean Returns version number of a newer Piwik release.

Private Methods

Method Description
getLatestAvailableVersionNumber ( ) : string Get the latest available version number for the currently active release channel. Eg '2.15.0-b4' or '2.15.0'.

Method Details

check() public static method

Check for a newer version
public static check ( boolean $force = false, integer $interval = null )
$force boolean Force check
$interval integer Interval used for update checks

getLatestVersion() public static method

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

isNewestVersionAvailable() public static method

Returns version number of a newer Piwik release.
public static isNewestVersionAvailable ( ) : string | boolean
return string | boolean false if current version is the latest available, or the latest version number if a newest release is available