MediaWiki  1.28.0
CoreVersionChecker Class Reference
Collaboration diagram for CoreVersionChecker:

Public Member Functions

 __construct ($coreVersion)
 
 check ($constraint)
 Check that the provided constraint is compatible with the current version of core. More...
 

Private Attributes

Constraint bool $coreVersion = false
 representing $wgVersion More...
 
VersionParser $versionParser
 

Detailed Description

Since
1.26

Definition at line 26 of file CoreVersionChecker.php.

Constructor & Destructor Documentation

CoreVersionChecker::__construct (   $coreVersion)
Parameters
string$coreVersionCurrent version of core

Definition at line 41 of file CoreVersionChecker.php.

References $e.

Member Function Documentation

CoreVersionChecker::check (   $constraint)

Check that the provided constraint is compatible with the current version of core.

Parameters
string$constraintSomething like ">= 1.26"
Returns
bool

Definition at line 59 of file CoreVersionChecker.php.

Member Data Documentation

Constraint bool CoreVersionChecker::$coreVersion = false
private

representing $wgVersion

Definition at line 31 of file CoreVersionChecker.php.

VersionParser CoreVersionChecker::$versionParser
private

Definition at line 36 of file CoreVersionChecker.php.


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