Version
    
            
            in package
            
        
    
    
    
        
            Version class.
Tags
Table of Contents
- $versions : mixed
- check() : bool|int
- Check app versions with given version.
- compare() : mixed
- Compares two version number strings.
- get() : string
- Get current version of system.
- getShort() : string
- Get current short version of system.
- init() : void
- Function to load versions.
Properties
$versions
    private
    static    mixed
    $versions
     = false
        
        
    
Methods
check()
Check app versions with given version.
    public
            static        check(string $version[, string $type = 'appVersion' ][, string $condition = '>=' ]) : bool|int
    
        Parameters
- $version : string
- 
                    - String Version against which comparision to be done
 
- $type : string = 'appVersion'
- $condition : string = '>='
- 
                    - String Condition like ( '=', '!=', '<', '<=', '>', '>=')
 
Return values
bool|int —compare()
Compares two version number strings.
    public
            static        compare(string $v1, string $v2[, string $operator = '==' ]) : mixed
    
        Parameters
- $v1 : string
- $v2 : string
- $operator : string = '=='
Return values
mixed —get()
Get current version of system.
    public
            static        get([string $type = 'appVersion' ]) : string
    
        Parameters
- $type : string = 'appVersion'
Return values
string —getShort()
Get current short version of system.
    public
            static        getShort([string $type = 'appVersion' ]) : string
    
        Parameters
- $type : string = 'appVersion'
Return values
string —init()
Function to load versions.
    private
            static        init() : void