MediaWiki  REL1_22
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 ()
 isLoggable ()

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 296 of file DatabaseError.php.


Constructor & Destructor Documentation

DBQueryError::__construct ( DatabaseBase db,
error,
errno,
sql,
fname 
)
Parameters:
$dbDatabaseBase
$errorstring
$errnoint|string
$sqlstring
$fnamestring

Definition at line 306 of file DatabaseError.php.


Member Function Documentation

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

Definition at line 409 of file DatabaseError.php.

Returns:
string

Reimplemented from DBError.

Definition at line 337 of file DatabaseError.php.

Returns:
string

Reimplemented from MWException.

Definition at line 330 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 385 of file DatabaseError.php.

Returns:
string

Reimplemented from DBError.

Definition at line 361 of file DatabaseError.php.

Returns:
boolean

Reimplemented from MWException.

Definition at line 322 of file DatabaseError.php.


Member Data Documentation

DBQueryError::$errno

Definition at line 297 of file DatabaseError.php.

DBQueryError::$error

Definition at line 297 of file DatabaseError.php.

DBQueryError::$fname

Definition at line 297 of file DatabaseError.php.

DBQueryError::$sql

Definition at line 297 of file DatabaseError.php.


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