MediaWiki REL1_28
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.
 

Private Attributes

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

Detailed Description

Since
1.26

Definition at line 26 of file CoreVersionChecker.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 41 of file CoreVersionChecker.php.

References $coreVersion, and $e.

Member Function Documentation

◆ check()

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

◆ $coreVersion

Constraint bool CoreVersionChecker::$coreVersion = false
private

representing $wgVersion

Definition at line 31 of file CoreVersionChecker.php.

Referenced by __construct().

◆ $versionParser

VersionParser CoreVersionChecker::$versionParser
private

Definition at line 36 of file CoreVersionChecker.php.


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