MediaWiki
REL1_22
|
Database abstraction object for PHP extension mysql. More...
Public Member Functions | |
affectedRows () | |
getServerVersion () | |
insertId () | |
lastErrno () | |
selectDB ($db) | |
Protected Member Functions | |
closeConnection () | |
doQuery ($sql) | |
mysqlConnect ($realServer) | |
Open a connection to a MySQL server. | |
mysqlDataSeek ($res, $row) | |
Move internal result pointer. | |
mysqlError ($conn=null) | |
Returns the text of the error message from previous MySQL operation. | |
mysqlFetchArray ($res) | |
Fetch a result row as an associative and numeric array. | |
mysqlFetchField ($res, $n) | |
Get column information from a result. | |
mysqlFetchObject ($res) | |
Fetch a result row as an object. | |
mysqlFieldName ($res, $n) | |
Get the name of the specified field in a result. | |
mysqlFreeResult ($res) | |
Free result memory. | |
mysqlNumFields ($res) | |
Get number of fields in result. | |
mysqlNumRows ($res) | |
Get number of rows in result. | |
mysqlPing () | |
Ping a server connection or reconnect if there is no connection. | |
mysqlRealEscapeString ($s) |
Database abstraction object for PHP extension mysql.
Definition at line 30 of file DatabaseMysql.php.
DatabaseMysql::closeConnection | ( | ) | [protected] |
DatabaseMysql::doQuery | ( | $ | sql | ) | [protected] |
$sql | string |
Reimplemented from DatabaseBase.
Definition at line 36 of file DatabaseMysql.php.
References $ret, and DatabaseBase\bufferResults().
DatabaseMysql::mysqlConnect | ( | $ | realServer | ) | [protected] |
Open a connection to a MySQL server.
$realServer | string |
DBConnectionError |
Reimplemented from DatabaseMysqlBase.
Definition at line 45 of file DatabaseMysql.php.
DatabaseMysql::mysqlDataSeek | ( | $ | res, |
$ | row | ||
) | [protected] |
Move internal result pointer.
$res | Raw result |
$row | int |
Reimplemented from DatabaseMysqlBase.
Definition at line 159 of file DatabaseMysql.php.
References $res.
DatabaseMysql::mysqlError | ( | $ | conn = null | ) | [protected] |
Returns the text of the error message from previous MySQL operation.
$conn | Raw connection |
Reimplemented from DatabaseMysqlBase.
Definition at line 163 of file DatabaseMysql.php.
DatabaseMysql::mysqlFetchArray | ( | $ | res | ) | [protected] |
Fetch a result row as an associative and numeric array.
$res | Raw result |
Reimplemented from DatabaseMysqlBase.
Definition at line 139 of file DatabaseMysql.php.
References $res.
DatabaseMysql::mysqlFetchField | ( | $ | res, |
$ | n | ||
) | [protected] |
Get column information from a result.
$res | Raw result |
$n | int |
Reimplemented from DatabaseMysqlBase.
Definition at line 151 of file DatabaseMysql.php.
DatabaseMysql::mysqlFetchObject | ( | $ | res | ) | [protected] |
Fetch a result row as an object.
$res | Raw result |
Reimplemented from DatabaseMysqlBase.
Definition at line 135 of file DatabaseMysql.php.
References $res.
DatabaseMysql::mysqlFieldName | ( | $ | res, |
$ | n | ||
) | [protected] |
Get the name of the specified field in a result.
$res | Raw result |
$n | int |
Reimplemented from DatabaseMysqlBase.
Definition at line 155 of file DatabaseMysql.php.
DatabaseMysql::mysqlFreeResult | ( | $ | res | ) | [protected] |
Free result memory.
$res | Raw result |
Reimplemented from DatabaseMysqlBase.
Definition at line 131 of file DatabaseMysql.php.
References $res.
DatabaseMysql::mysqlNumFields | ( | $ | res | ) | [protected] |
Get number of fields in result.
$res | Raw result |
Reimplemented from DatabaseMysqlBase.
Definition at line 147 of file DatabaseMysql.php.
References $res.
DatabaseMysql::mysqlNumRows | ( | $ | res | ) | [protected] |
Get number of rows in result.
$res | Raw result |
Reimplemented from DatabaseMysqlBase.
Definition at line 143 of file DatabaseMysql.php.
References $res.
DatabaseMysql::mysqlPing | ( | ) | [protected] |
Ping a server connection or reconnect if there is no connection.
Reimplemented from DatabaseMysqlBase.
Definition at line 171 of file DatabaseMysql.php.
DatabaseMysql::mysqlRealEscapeString | ( | $ | s | ) | [protected] |
Definition at line 167 of file DatabaseMysql.php.
References $s.
DatabaseMysql::selectDB | ( | $ | db | ) |
$db |
Reimplemented from DatabaseBase.
Definition at line 119 of file DatabaseMysql.php.