MediaWiki
1.29.2
|
Public Member Functions | |
checkExtensionExistence () | |
Displays an error, if a PHP extension does not exist. More... | |
checkRequiredPHPVersion () | |
Displays an error, if the installed php version does not meet the minimum requirement. More... | |
checkVendorExistence () | |
Displays an error, if the vendor/autoload.php file could not be found. More... | |
getIndexErrorOutput ( $title, $longHtml, $shortText) | |
Returns an error page, which is suitable for output to the end user via a web browser. More... | |
getPHPImplVersion () | |
Returns the version of the installed php implementation. More... | |
outputHTMLHeader () | |
Output headers that prevents error pages to be cached. More... | |
setEntryPoint ( $entryPoint) | |
triggerError ( $title, $shortText, $longText, $longHtml) | |
Display something vaguely comprehensible in the event of a totally unrecoverable error. More... | |
Public Attributes | |
string | $entryPoint = null |
Which entry point we are protecting. More... | |
$functionsExtensionsMapping | |
$minimumVersionPHP = '5.5.9' | |
$mwVersion = '1.29' | |
Definition at line 27 of file PHPVersionCheck.php.
PHPVersionCheck::checkExtensionExistence | ( | ) |
PHPVersionCheck::checkRequiredPHPVersion | ( | ) |
Displays an error, if the installed php version does not meet the minimum requirement.
Definition at line 77 of file PHPVersionCheck.php.
References a, and(), are, by, copy, Makefile\download(), from, getPHPImplVersion(), href, If, not, of, or, page, PHP, reason(), some, triggerError(), updates(), version, will, and you.
PHPVersionCheck::checkVendorExistence | ( | ) |
Displays an error, if the vendor/autoload.php file could not be found.
Definition at line 111 of file PHPVersionCheck.php.
References a, from, captcha-old\help, href, on, or, see, some, that, and triggerError().
PHPVersionCheck::getIndexErrorOutput | ( | $title, | |
$longHtml, | |||
$shortText | |||
) |
Returns an error page, which is suitable for output to the end user via a web browser.
$title | |
$longHtml | |
$shortText |
Definition at line 193 of file PHPVersionCheck.php.
References color, captcha-old\font, style, text, and title.
Referenced by triggerError().
PHPVersionCheck::getPHPImplVersion | ( | ) |
Returns the version of the installed php implementation.
Definition at line 68 of file PHPVersionCheck.php.
Referenced by checkRequiredPHPVersion().
PHPVersionCheck::outputHTMLHeader | ( | ) |
Output headers that prevents error pages to be cached.
Definition at line 176 of file PHPVersionCheck.php.
Referenced by triggerError().
PHPVersionCheck::setEntryPoint | ( | $entryPoint | ) |
string | $entryPoint | Which entry point we are protecting. One of:
|
Definition at line 59 of file PHPVersionCheck.php.
References $entryPoint.
PHPVersionCheck::triggerError | ( | $title, | |
$shortText, | |||
$longText, | |||
$longHtml | |||
) |
Display something vaguely comprehensible in the event of a totally unrecoverable error.
Does not assume access to anything; no globals, no autoloader, no database, no localisation. Safe for PHP4 (and putting this here means that WebStart.php and GlobalSettings.php no longer need to be).
Calling this function kills execution immediately.
string | $title | HTML code to be put within an tag @param string $shortText @param string $longText @param string $longHtml |
Definition at line 265 of file PHPVersionCheck.php.
References $title, getIndexErrorOutput(), and outputHTMLHeader().
Referenced by checkExtensionExistence(), checkRequiredPHPVersion(), and checkVendorExistence().
string PHPVersionCheck::$entryPoint = null |
Which entry point we are protecting.
One of:
Definition at line 48 of file PHPVersionCheck.php.
Referenced by setEntryPoint().
PHPVersionCheck::$functionsExtensionsMapping |
Definition at line 32 of file PHPVersionCheck.php.
PHPVersionCheck::$minimumVersionPHP = '5.5.9' |
Definition at line 31 of file PHPVersionCheck.php.
PHPVersionCheck::$mwVersion = '1.29' |
Definition at line 29 of file PHPVersionCheck.php.