MediaWiki  REL1_22
DatabaseMysqli Class Reference

Database abstraction object for PHP extension mysqli. More...

Inheritance diagram for DatabaseMysqli:
Collaboration diagram for DatabaseMysqli:

List of all members.

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)

Detailed Description

Database abstraction object for PHP extension mysqli.

Since:
1.22
See also:
Database

Definition at line 31 of file DatabaseMysqli.php.


Member Function Documentation

Returns:
int

Implements DatabaseType.

Definition at line 121 of file DatabaseMysqli.php.

Returns:
bool

Reimplemented from DatabaseBase.

Definition at line 96 of file DatabaseMysqli.php.

DatabaseMysqli::doQuery ( sql) [protected]
Parameters:
$sqlstring
Returns:
resource

Reimplemented from DatabaseBase.

Definition at line 37 of file DatabaseMysqli.php.

References $ret, and DatabaseBase\bufferResults().

Returns:
string

Implements DatabaseType.

Definition at line 137 of file DatabaseMysqli.php.

Returns:
int

Implements DatabaseType.

Definition at line 103 of file DatabaseMysqli.php.

Returns:
int

Implements DatabaseType.

Definition at line 110 of file DatabaseMysqli.php.

DatabaseMysqli::mysqlConnect ( realServer) [protected]

Open a connection to a MySQL server.

Parameters:
$realServerstring
Returns:
mixed Raw connection
Exceptions:
DBConnectionError

Reimplemented from DatabaseMysqlBase.

Definition at line 46 of file DatabaseMysqli.php.

References IP\splitHostAndPort().

DatabaseMysqli::mysqlDataSeek ( res,
row 
) [protected]

Move internal result pointer.

Parameters:
$resRaw result
$rowint
Returns:
bool

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.

Parameters:
$connRaw connection
Returns:
string

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.

Parameters:
$resRaw result
Returns:
array

Reimplemented from DatabaseMysqlBase.

Definition at line 154 of file DatabaseMysqli.php.

References $res.

DatabaseMysqli::mysqlFetchField ( res,
n 
) [protected]

Get column information from a result.

Parameters:
$resRaw result
$nint
Returns:
stdClass

Reimplemented from DatabaseMysqlBase.

Definition at line 170 of file DatabaseMysqli.php.

References $n, and $res.

DatabaseMysqli::mysqlFetchObject ( res) [protected]

Fetch a result row as an object.

Parameters:
$resRaw result
Returns:
stdClass

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.

Parameters:
$resRaw result
$nint
Returns:
string

Reimplemented from DatabaseMysqlBase.

Definition at line 180 of file DatabaseMysqli.php.

References $n, and $res.

DatabaseMysqli::mysqlFreeResult ( res) [protected]

Free result memory.

Parameters:
$resRaw result
Returns:
bool

Reimplemented from DatabaseMysqlBase.

Definition at line 141 of file DatabaseMysqli.php.

References $res.

DatabaseMysqli::mysqlNumFields ( res) [protected]

Get number of fields in result.

Parameters:
$resRaw result
Returns:
int

Reimplemented from DatabaseMysqlBase.

Definition at line 166 of file DatabaseMysqli.php.

References $res.

DatabaseMysqli::mysqlNumRows ( res) [protected]

Get number of rows in result.

Parameters:
$resRaw result
Returns:
int

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.

Returns:
bool

Reimplemented from DatabaseMysqlBase.

Definition at line 201 of file DatabaseMysqli.php.

Definition at line 197 of file DatabaseMysqli.php.

References $s.

Parameters:
$db
Returns:
bool

Reimplemented from DatabaseBase.

Definition at line 129 of file DatabaseMysqli.php.


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