MediaWiki REL1_32
|
Public Member Functions | |
checkExtensionExistence () | |
Displays an error, if a PHP extension does not exist. | |
checkRequiredPHPVersion () | |
Displays an error, if the installed php version does not meet the minimum requirement. | |
checkVendorExistence () | |
Displays an error, if the vendor/autoload.php file could not be found. | |
getIndexErrorOutput ( $title, $longHtml, $shortText) | |
Returns an error page, which is suitable for output to the end user via a web browser. | |
getPHPInfo ( $impl=false) | |
Returns the version of the installed php implementation. | |
outputHTMLHeader () | |
Output headers that prevents error pages to be cached. | |
setEntryPoint ( $entryPoint) | |
triggerError ( $title, $shortText, $longText, $longHtml) | |
Display something vaguely comprehensible in the event of a totally unrecoverable error. | |
Public Attributes | |
string | $entryPoint = null |
Which entry point we are protecting. | |
$functionsExtensionsMapping | |
$mwVersion = '1.32' | |
Definition at line 29 of file PHPVersionCheck.php.
PHPVersionCheck::checkExtensionExistence | ( | ) |
Displays an error, if a PHP extension does not exist.
Definition at line 180 of file PHPVersionCheck.php.
References $ext, are, array(), as, PHP, that, and triggerError().
PHPVersionCheck::checkRequiredPHPVersion | ( | ) |
PHPVersionCheck::checkVendorExistence | ( | ) |
Displays an error, if the vendor/autoload.php file could not be found.
Definition at line 154 of file PHPVersionCheck.php.
References from, href, on, or, see, 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.
string | $title | |
string | $longHtml | |
string | $shortText |
Definition at line 236 of file PHPVersionCheck.php.
References $title, color, div, error, style, text, and title.
Referenced by triggerError().
PHPVersionCheck::getPHPInfo | ( | $impl = false | ) |
Returns the version of the installed php implementation.
string | $impl | By default, the function returns the info of the currently installed PHP implementation. Using this parameter the caller can decide, what version info will be returned. Valid values: HHVM, PHP |
Definition at line 79 of file PHPVersionCheck.php.
References array().
Referenced by checkRequiredPHPVersion().
PHPVersionCheck::outputHTMLHeader | ( | ) |
Output headers that prevents error pages to be cached.
Definition at line 219 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 308 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 49 of file PHPVersionCheck.php.
Referenced by setEntryPoint().
PHPVersionCheck::$functionsExtensionsMapping |
Definition at line 32 of file PHPVersionCheck.php.
PHPVersionCheck::$mwVersion = '1.32' |
Definition at line 31 of file PHPVersionCheck.php.