MediaWiki
REL1_22
|
Database abstraction object for PHP extension mysqli. 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 mysqli.
Definition at line 31 of file DatabaseMysqli.php.
DatabaseMysqli::closeConnection | ( | ) | [protected] |
DatabaseMysqli::doQuery | ( | $ | sql | ) | [protected] |
$sql | string |
Reimplemented from DatabaseBase.
Definition at line 37 of file DatabaseMysqli.php.
References $ret, and DatabaseBase\bufferResults().
DatabaseMysqli::mysqlConnect | ( | $ | realServer | ) | [protected] |
Open a connection to a MySQL server.
$realServer | string |
DBConnectionError |
Reimplemented from DatabaseMysqlBase.
Definition at line 46 of file DatabaseMysqli.php.
References IP\splitHostAndPort().
DatabaseMysqli::mysqlDataSeek | ( | $ | res, |
$ | row | ||
) | [protected] |
Move internal result pointer.
$res | Raw result |
$row | int |
Reimplemented from DatabaseMysqlBase.
Definition at line 185 of file DatabaseMysqli.php.
References $res.
DatabaseMysqli::mysqlError | ( | $ | conn = null | ) | [protected] |
Returns the text of the error message from previous MySQL operation.
$conn | Raw connection |
Reimplemented from DatabaseMysqlBase.
Definition at line 189 of file DatabaseMysqli.php.
DatabaseMysqli::mysqlFetchArray | ( | $ | res | ) | [protected] |
Fetch a result row as an associative and numeric array.
$res | Raw result |
Reimplemented from DatabaseMysqlBase.
Definition at line 154 of file DatabaseMysqli.php.
References $res.
DatabaseMysqli::mysqlFetchField | ( | $ | res, |
$ | n | ||
) | [protected] |
Get column information from a result.
$res | Raw result |
$n | int |
Reimplemented from DatabaseMysqlBase.
Definition at line 170 of file DatabaseMysqli.php.
DatabaseMysqli::mysqlFetchObject | ( | $ | res | ) | [protected] |
Fetch a result row as an object.
$res | Raw result |
Reimplemented from DatabaseMysqlBase.
Definition at line 146 of file DatabaseMysqli.php.
References $res.
DatabaseMysqli::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 180 of file DatabaseMysqli.php.
DatabaseMysqli::mysqlFreeResult | ( | $ | res | ) | [protected] |
Free result memory.
$res | Raw result |
Reimplemented from DatabaseMysqlBase.
Definition at line 141 of file DatabaseMysqli.php.
References $res.
DatabaseMysqli::mysqlNumFields | ( | $ | res | ) | [protected] |
Get number of fields in result.
$res | Raw result |
Reimplemented from DatabaseMysqlBase.
Definition at line 166 of file DatabaseMysqli.php.
References $res.
DatabaseMysqli::mysqlNumRows | ( | $ | res | ) | [protected] |
Get number of rows in result.
$res | Raw result |
Reimplemented from DatabaseMysqlBase.
Definition at line 162 of file DatabaseMysqli.php.
References $res.
DatabaseMysqli::mysqlPing | ( | ) | [protected] |
Ping a server connection or reconnect if there is no connection.
Reimplemented from DatabaseMysqlBase.
Definition at line 201 of file DatabaseMysqli.php.
DatabaseMysqli::mysqlRealEscapeString | ( | $ | s | ) | [protected] |
Definition at line 197 of file DatabaseMysqli.php.
References $s.
DatabaseMysqli::selectDB | ( | $ | db | ) |
$db |
Reimplemented from DatabaseBase.
Definition at line 129 of file DatabaseMysqli.php.