Class to store and retrieve the version of Knowledgeroot.

category Knowledgeroot
package Knowledgeroot_Version
copyright Copyright (c) 2011 Frank Habermann
license New BSD License

 Methods

Compare the specified Knowledgeroot version string $version with the current Knowledgeroot_Version::VERSION of Knowledgeroot.

compareVersion(string $version) : int
Static

Parameters

$version

string

A version string (e.g. "0.7.1").

Returns

int-1 if the $version is older, 0 if they are the same, and +1 if $version is newer.

Fetches the version of the latest stable release

getLatest() : string
Static

 Properties

 

$_latestVersion : string

 Constants

 

Knowledgeroot version identification - see compareVersion()

VERSION