MediaWiki  REL1_24
DBQueryError Class Reference
Inheritance diagram for DBQueryError:
Collaboration diagram for DBQueryError:

List of all members.

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)

Detailed Description

Definition at line 319 of file DatabaseError.php.


Constructor & Destructor Documentation

DBQueryError::__construct ( DatabaseBase db,
error,
errno,
sql,
fname 
)
Parameters:
DatabaseBase$db
string$error
int | string$errno
string$sql
string$fname

Definition at line 329 of file DatabaseError.php.


Member Function Documentation

DBQueryError::getFallbackMessage ( key) [private]
Parameters:
string$keyMessage key
Returns:
string English message text

Definition at line 426 of file DatabaseError.php.

Returns:
string

Reimplemented from DBExpectedError.

Definition at line 354 of file DatabaseError.php.

Returns:
string

Reimplemented from MWException.

Definition at line 347 of file DatabaseError.php.

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.

Returns:
array Keys are message keys; values are arrays of arguments for Html::element(). Array will be empty if users are not allowed to see any of these details at all.

Definition at line 402 of file DatabaseError.php.

Returns:
string

Reimplemented from DBExpectedError.

Definition at line 378 of file DatabaseError.php.


Member Data Documentation

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.


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