Open Journal Systems
3.3.0
|
Static Public Member Functions | |
static | checkIfNewVersionExists () |
static | getCurrentCodeVersion () |
static | getCurrentDBVersion () |
static | getLatestVersion () |
static | getPatch ($versionInfo, $codeVersion=null) |
static | getValidPluginVersionInfo ($versionFile) |
static | parseVersionXML ($url) |
Provides methods to check for the latest version of OJS.
Definition at line 22 of file VersionCheck.inc.php.
|
static |
Checks the application's version against the latest version on the PKP servers.
Definition at line 174 of file VersionCheck.inc.php.
References getCurrentDBVersion(), and getLatestVersion().
Referenced by ManagementHandler\context(), and AdminHandler\initialize().
|
static |
Return the current code version.
Definition at line 61 of file VersionCheck.inc.php.
References parseVersionXML().
Referenced by UpgradeTool\checkVersion(), MaintenanceForm\display(), and getPatch().
|
static |
Return the currently installed database version.
Definition at line 52 of file VersionCheck.inc.php.
References DAORegistry\getDAO().
Referenced by checkIfNewVersionExists(), UpgradeTool\checkVersion(), ManagementHandler\context(), and AdminHandler\initialize().
|
static |
Return information about the latest available version.
Definition at line 28 of file VersionCheck.inc.php.
References $application, PKPApplication\get(), DAORegistry\getDAO(), Config\getVar(), and parseVersionXML().
Referenced by UpgradeTool\check(), checkIfNewVersionExists(), UpgradeTool\download(), UpgradeTool\latest(), and AdminHandler\systemInfo().
|
static |
Find the applicable patch for the current code version (if available).
$versionInfo | array as returned by parseVersionXML() |
$codeVersion | as returned by getCurrentCodeVersion() |
Definition at line 127 of file VersionCheck.inc.php.
References getCurrentCodeVersion().
Referenced by AdminHandler\systemInfo().
|
static |
Checks whether the given version file exists and whether it contains valid data. Returns a Version object if everything is ok, otherwise throws an Exception.
$versionFile | string |
Definition at line 144 of file VersionCheck.inc.php.
References parseVersionXML(), and PKPString\regexp_match().
Referenced by PluginHelper\installPlugin(), and PluginHelper\upgradePlugin().
|
static |
Parse information from a version XML file.
$url | string |
Definition at line 74 of file VersionCheck.inc.php.
References Version\fromString().
Referenced by Installer\addPluginVersions(), InstallPluginVersionTool\execute(), PluginTestCase\executePluginTest(), getCurrentCodeVersion(), getLatestVersion(), getValidPluginVersionInfo(), and PluginGridHandler\loadCategoryData().