MediaWiki REL1_33
|
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) | |
Return the version of the installed PHP implementation. | |
outputHTMLHeader () | |
Output headers that prevents error pages to be cached. | |
setFormat ( $format) | |
Set the format used for errors. | |
setScriptPath ( $scriptPath) | |
Set the script path used for images in HTML-formatted errors. | |
triggerError ( $title, $shortText, $longText, $longHtml) | |
Display something vaguely comprehensible in the event of a totally unrecoverable error. | |
Public Attributes | |
$format = 'text' | |
$functionsExtensionsMapping | |
$mwVersion = '1.33' | |
$scriptPath = '/' | |
Definition at line 37 of file PHPVersionCheck.php.
PHPVersionCheck::checkExtensionExistence | ( | ) |
Displays an error, if a PHP extension does not exist.
Definition at line 196 of file PHPVersionCheck.php.
References $ext, and(), array(), PHP, and triggerError().
PHPVersionCheck::checkRequiredPHPVersion | ( | ) |
Displays an error, if the installed PHP version does not meet the minimum requirement.
Definition at line 122 of file PHPVersionCheck.php.
References and(), copy, getPHPInfo(), href, triggerError(), and version.
PHPVersionCheck::checkVendorExistence | ( | ) |
Displays an error, if the vendor/autoload.php file could not be found.
Definition at line 170 of file PHPVersionCheck.php.
References and(), href, 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 252 of file PHPVersionCheck.php.
References and(), color, div, style, and title.
Referenced by triggerError().
PHPVersionCheck::getPHPInfo | ( | $impl = false | ) |
Return 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 95 of file PHPVersionCheck.php.
References array().
Referenced by checkRequiredPHPVersion().
PHPVersionCheck::outputHTMLHeader | ( | ) |
Output headers that prevents error pages to be cached.
Definition at line 235 of file PHPVersionCheck.php.
References and().
Referenced by triggerError().
PHPVersionCheck::setFormat | ( | $format | ) |
Set the format used for errors.
string | $format | One of "text" or "html" |
Definition at line 66 of file PHPVersionCheck.php.
References $format.
PHPVersionCheck::setScriptPath | ( | $scriptPath | ) |
Set the script path used for images in HTML-formatted errors.
string | $scriptPath |
Definition at line 75 of file PHPVersionCheck.php.
References $scriptPath.
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 318 of file PHPVersionCheck.php.
References and(), getIndexErrorOutput(), and outputHTMLHeader().
Referenced by checkExtensionExistence(), checkRequiredPHPVersion(), and checkVendorExistence().
PHPVersionCheck::$format = 'text' |
Definition at line 54 of file PHPVersionCheck.php.
Referenced by setFormat().
PHPVersionCheck::$functionsExtensionsMapping |
Definition at line 42 of file PHPVersionCheck.php.
PHPVersionCheck::$mwVersion = '1.33' |
Definition at line 39 of file PHPVersionCheck.php.
string PHPVersionCheck::$scriptPath = '/' |
Definition at line 59 of file PHPVersionCheck.php.
Referenced by setScriptPath().