expVersion

define

"BASE" "../../.."

package

Subsystems

Methods

Routine to check for installation or upgrade

checkVersion(boolean $force = false) : boolean
static

Arguments

$force

boolean

Response

boolean

Routine to compare passed versions

compareVersion(object $version1, object $version2, boolean $onlypatchchk = false) : boolean
static

Arguments

$version1

object

$version2

object

$onlypatchchk

boolean

returns false if major.minor.revision are equal and type is 'patch'

Response

boolean

set to true if $version1 is less than $version2

Return an object of the current version number stored in the database.

dbVersion() : object
static
node

Subsystems:expVersion

Response

object

Return a string of the current version number in the database.

getDBVersion(boolean $full = false, boolean $type = false, boolean $build = true) : string
static
node

Subsystems:expVersion

Arguments

$full

boolean

Whether or not to return a full version number. If passed as true, a string in the form of '2.0.3-beta5' will be returned. Otherwise, '2.0' would be returned.

$type

boolean

Whether to include the type and interation of a full version number

$build

boolean

Whether or not to return the build date in the string.

Response

string

Return a string of the current version number.

getVersion(boolean $full = false, boolean $build = false, boolean $type = true) : string
static
node

Subsystems:expVersion

Arguments

$full

boolean

Whether or not to return a full version number. If passed as true, a string in the form of '2.0.3-beta5' will be returned. Otherwise, '2.0' would be returned.

$build

boolean

Whether or not to return the build date in the string.

$type

boolean

Whether to include the type and interation of a full version number

Response

string

Routine to convert version iteration type to a rank

iterateType(string $type) : integer
static

Arguments

$type

string

Response

integer

Return an object of the current version number of the software.

swVersion() : object
static
node

Subsystems:expVersion

Response

object