Public Member Functions |
| | __construct (array $params) |
| | connect () |
| | disconnect () |
| | isConnected () |
| | getVersion () |
| | doQuery ($sql, array $bind=array(), array $opts=array()) |
| | getError ($result=null) |
| | Returns error message for the query result (specified, or last if null)
|
| | getAffectedRows () |
| | Returns the number of affected rows by last query/execute.
|
| | getLastInsertId () |
| | Returns last insert ID.
|
| | closeResult ($result=null) |
| | Closes query result (specified, or last if null)
|
| | fetchRow ($result=null, array $opts=array()) |
| | Fetches one whole row from the query result (specified, or last if null), and moves to the next row.
|
| | seekToRow ($row, $result=null) |
| | Moves to specified row.
|
| | getRowCount ($result=null) |
| | getColumnCount ($result=null) |
| | getColumnInfo ($column, $result=null) |
| | Enter description here ...
|
| | quote ($value, $handleTypes=true) |
| | quoteArray ($arr, $handleTypes=true) |
Protected Member Functions |
| | doBegin () |
| | doCommit () |
| | doRollback () |
Protected Attributes |
| | $mysql |
Constructor & Destructor Documentation
| KDB_Legacy::__construct |
( |
array $ |
params | ) |
|
- Parameters:
-
| $params | Connection parameters ( |
- See also:
- KDB::PARAM_*):
- host
- user
- pass
- Database
- transactions
- encoding
- alias
- reuse
- persist
Reimplemented from KDB_Driver.
Member Function Documentation
| KDB_Legacy::closeResult |
( |
$ |
result = null | ) |
|
Closes query result (specified, or last if null)
- Parameters:
-
| $result | Object/resource returned from query() or null to use the last one |
| unknown_type | $result | |
Reimplemented from KDB_Driver.
| KDB_Legacy::disconnect |
( |
| ) |
|
| KDB_Legacy::doBegin |
( |
| ) |
[protected] |
| KDB_Legacy::doCommit |
( |
| ) |
[protected] |
| KDB_Legacy::doQuery |
( |
$ |
sql, |
|
|
array $ |
bind = array(), |
|
|
array $ |
opts = array() |
|
) |
| |
| KDB_Legacy::doRollback |
( |
| ) |
[protected] |
| KDB_Legacy::fetchRow |
( |
$ |
result = null, |
|
|
array $ |
opts = array() |
|
) |
| |
Fetches one whole row from the query result (specified, or last if null), and moves to the next row.
- Parameters:
-
| $result | Object/resource returned from query() or null to use the last one |
| array | $opts | Additional options like KDB::OPT_FETCH |
Reimplemented from KDB_Driver.
| KDB_Legacy::getAffectedRows |
( |
| ) |
|
Returns the number of affected rows by last query/execute.
Reimplemented from KDB_Driver.
| KDB_Legacy::getColumnCount |
( |
$ |
result = null | ) |
|
| KDB_Legacy::getColumnInfo |
( |
$ |
column, |
|
|
$ |
result = null |
|
) |
| |
Enter description here ...
- Parameters:
-
| unknown_type | $column | |
| unknown_type | $result | |
- Returns:
- KDB_ColumnInfo
Reimplemented from KDB_Driver.
| KDB_Legacy::getError |
( |
$ |
result = null | ) |
|
Returns error message for the query result (specified, or last if null)
- Parameters:
-
| $result | Object/resource returned from query() or null to use the last one |
Reimplemented from KDB_Driver.
| KDB_Legacy::getLastInsertId |
( |
| ) |
|
Returns last insert ID.
Reimplemented from KDB_Driver.
| KDB_Legacy::getRowCount |
( |
$ |
result = null | ) |
|
| KDB_Legacy::getVersion |
( |
| ) |
|
| KDB_Legacy::isConnected |
( |
| ) |
|
| KDB_Legacy::quote |
( |
$ |
value, |
|
|
$ |
handleTypes = true |
|
) |
| |
| KDB_Legacy::quoteArray |
( |
$ |
arr, |
|
|
$ |
handleTypes = true |
|
) |
| |
| KDB_Legacy::seekToRow |
( |
$ |
row, |
|
|
$ |
result = null |
|
) |
| |
Moves to specified row.
- Parameters:
-
| unknown_type | $row | |
| unknown_type | $result | |
- Returns:
- boolean - TRUE if successfull
Reimplemented from KDB_Driver.
Field Documentation
KDB_Legacy::$mysql [protected] |
The documentation for this class was generated from the following file: