class CRM_Utils_VersionCheck

Constants

CACHEFILE_NAME

CACHEFILE_EXPIRE

Properties

string $localVersion The version of the current (local) installation
string $localMajorVersion The major version (branch name) of the local version
array $versionInfo Info about available versions
bool $isInfoAvailable
array $cronJob
string $pingbackUrl
protected array $stats Pingback params
string $cacheFile Path to cache file

Methods

__construct()

Class constructor.

initialize()

Self-populates version info

setVersionInfo($info)

Sets $versionInfo

array|null
getReleaseInfo(string $version)

Finds the release info for a minor version.

string
getMajorVersion($minorVersion)

No description

array
isNewerVersionAvailable()

Get the latest version number if it's newer than the local one

fetch()

Called by version_check cron job

Details

at line 92
__construct()

Class constructor.

at line 103
initialize()

Self-populates version info

Exceptions

Exception

at line 129
setVersionInfo($info)

Sets $versionInfo

Parameters

$info

at line 140
array|null getReleaseInfo(string $version)

Finds the release info for a minor version.

Parameters

string $version

Return Value

array|null

at line 156
string getMajorVersion($minorVersion)

Parameters

$minorVersion

Return Value

string

at line 173
array isNewerVersionAvailable()

Get the latest version number if it's newer than the local one

Return Value

array Returns version number of the latest release if it is greater than the local version, along with the type of upgrade (regular/security) needed and the status of the major version

at line 241
fetch()

Called by version_check cron job