MediaWiki
REL1_24
|
Public Member Functions | |
__construct (DatabaseBase $db, $error, $errno, $sql, $fname) | |
getPageTitle () | |
Public Attributes | |
$errno | |
$error | |
$fname | |
$sql | |
Protected Member Functions | |
getHTMLContent () | |
getTechnicalDetails () | |
Make a list of technical details that can be shown to the user. | |
getTextContent () | |
Private Member Functions | |
getFallbackMessage ($key) |
Definition at line 319 of file DatabaseError.php.
DBQueryError::__construct | ( | DatabaseBase $ | db, |
$ | error, | ||
$ | errno, | ||
$ | sql, | ||
$ | fname | ||
) |
DatabaseBase | $db | |
string | $error | |
int | string | $errno | |
string | $sql | |
string | $fname |
Definition at line 329 of file DatabaseError.php.
DBQueryError::getFallbackMessage | ( | $ | key | ) | [private] |
string | $key | Message key |
Definition at line 426 of file DatabaseError.php.
DBQueryError::getHTMLContent | ( | ) | [protected] |
Reimplemented from DBExpectedError.
Definition at line 354 of file DatabaseError.php.
DBQueryError::getTechnicalDetails | ( | ) | [protected] |
Make a list of technical details that can be shown to the user.
This information can aid in debugging yet may be useful to an attacker trying to exploit a security weakness in the software or server configuration.
Thus no such details are shown by default, though if $wgShowHostnames is true, only the full SQL query is hidden; in fact, the error message often does contain a hostname, and sites using this option probably don't care much about "security by obscurity". Of course, if $wgShowSQLErrors is true, the SQL query *is* shown.
Definition at line 402 of file DatabaseError.php.
DBQueryError::getTextContent | ( | ) | [protected] |
Reimplemented from DBExpectedError.
Definition at line 378 of file DatabaseError.php.
DBQueryError::$errno |
Definition at line 320 of file DatabaseError.php.
DBQueryError::$error |
Definition at line 320 of file DatabaseError.php.
DBQueryError::$fname |
Definition at line 320 of file DatabaseError.php.
DBQueryError::$sql |
Definition at line 320 of file DatabaseError.php.