Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
StudipVersion Class Reference

Static Public Member Functions

static getStudipVersion ($major=true)
 
static newerThan ($version, $major=true)
 
static olderThan ($version, $major=true)
 
static matches ($version, $major=true)
 
static range ($from_version, $to_version, $major=true)
 

Detailed Description

Member Function Documentation

static getStudipVersion (   $major = true)
static

Returns the current Stud.IP-version

Parameters
bool$majorif true (default) only the major version part is returned
Returns
string
static matches (   $version,
  $major = true 
)
static

Returns true if passed version matches the current Stud.IP version

Parameters
string$version
bool$majorif true (default) only the major version part is checked (fe. 3.4, 3.5, ...)
Returns
bool
static newerThan (   $version,
  $major = true 
)
static

Returns true if passed version is newer than the current Stud.IP version

Parameters
string$version
bool$majorif true (default) only the major version part is checked (fe. 3.4, 3.5, ...)
Returns
bool
static olderThan (   $version,
  $major = true 
)
static

Returns true if passed version is older than the current Stud.IP version

Parameters
string$version
bool$majorif true (default) only the major version part is checked (fe. 3.4, 3.5, ...)
Returns
bool
static range (   $from_version,
  $to_version,
  $major = true 
)
static

Returns true if version equals or is between the two passed versions

Parameters
string$from_version
string$to_version
bool$majorif true (default) only the major version part is checked (fe. 3.4, 3.5, ...)
Returns
bool

The documentation for this class was generated from the following file: