CRM_Utils_VersionCheck
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
at line 129
setVersionInfo($info)
Sets $versionInfo
at line 140
array|null
getReleaseInfo(string $version)
Finds the release info for a minor version.
at line 156
string
getMajorVersion($minorVersion)
at line 173
array
isNewerVersionAvailable()
Get the latest version number if it's newer than the local one
at line 241
fetch()
Called by version_check cron job