MediaWiki  REL1_23
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 323 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 333 of file DatabaseError.php.


Member Function Documentation

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

Definition at line 438 of file DatabaseError.php.

Returns:
string

Reimplemented from DBExpectedError.

Definition at line 366 of file DatabaseError.php.

Returns:
string

Reimplemented from MWException.

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

Returns:
string

Reimplemented from DBExpectedError.

Definition at line 390 of file DatabaseError.php.

Returns:
bool

Reimplemented from MWException.

Definition at line 351 of file DatabaseError.php.


Member Data Documentation

DBQueryError::$errno

Definition at line 324 of file DatabaseError.php.

DBQueryError::$error

Definition at line 324 of file DatabaseError.php.

DBQueryError::$fname

Definition at line 324 of file DatabaseError.php.

DBQueryError::$sql

Definition at line 324 of file DatabaseError.php.


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