PDO Driver.
More...
Public Member Functions |
| __construct (array $params) |
| connect () |
| disconnect () |
| isConnected () |
| getVersion () |
| setAffectedRows ($value) |
| doQuery ($sql, array $bind=array(), array $opts=array()) |
| getError ($result=null) |
| http://docstore.mik.ua/orelly/java-ent/jenut/ch08_06.htm
|
| 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) |
Static Public Member Functions |
static | findType ($value) |
static | getType ($opts=array()) |
Data Fields |
| $pdo |
Protected Member Functions |
| clearCachedStatement ($id=null) |
| getCachedStatement ($id) |
| setCachedStatement ($id, PDOStatement $statement) |
| hasCachedStatement ($id) |
| statement ($sql, array $opts=array()) |
| doBegin () |
| doCommit () |
| doRollback () |
Protected Attributes |
| $cachedStatements |
| $affectedRows |
| $lastStatement |
Detailed Description
PDO Driver.
- Author:
- Jacek Zawiślak, Rafał Lindemann
Constructor & Destructor Documentation
KDB_PDO::__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_PDO::clearCachedStatement |
( |
$ |
id = null | ) |
[protected] |
KDB_PDO::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_PDO::doBegin |
( |
| ) |
[protected] |
KDB_PDO::doCommit |
( |
| ) |
[protected] |
KDB_PDO::doQuery |
( |
$ |
sql, |
|
|
array $ |
bind = array() , |
|
|
array $ |
opts = array() |
|
) |
| |
KDB_PDO::doRollback |
( |
| ) |
[protected] |
KDB_PDO::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.
static KDB_PDO::findType |
( |
$ |
value | ) |
[static] |
KDB_PDO::getAffectedRows |
( |
| ) |
|
Returns the number of affected rows by last query/execute.
Reimplemented from KDB_Driver.
KDB_PDO::getCachedStatement |
( |
$ |
id | ) |
[protected] |
KDB_PDO::getColumnCount |
( |
$ |
result = null | ) |
|
KDB_PDO::getColumnInfo |
( |
$ |
column, |
|
|
$ |
result = null |
|
) |
| |
Enter description here ...
- Parameters:
-
unknown_type | $column | |
unknown_type | $result | |
- Returns:
- KDB_ColumnInfo
Reimplemented from KDB_Driver.
KDB_PDO::getError |
( |
$ |
result = null | ) |
|
KDB_PDO::getLastInsertId |
( |
| ) |
|
Returns last insert ID.
Reimplemented from KDB_Driver.
KDB_PDO::getRowCount |
( |
$ |
result = null | ) |
|
static KDB_PDO::getType |
( |
$ |
opts = array() | ) |
[static] |
KDB_PDO::hasCachedStatement |
( |
$ |
id | ) |
[protected] |
KDB_PDO::quote |
( |
$ |
value, |
|
|
$ |
handleTypes = true |
|
) |
| |
KDB_PDO::quoteArray |
( |
$ |
arr, |
|
|
$ |
handleTypes = true |
|
) |
| |
KDB_PDO::seekToRow |
( |
$ |
row, |
|
|
$ |
result = null |
|
) |
| |
Moves to specified row.
- Parameters:
-
unknown_type | $row | |
unknown_type | $result | |
- Returns:
- boolean - TRUE if successfull
Reimplemented from KDB_Driver.
KDB_PDO::setAffectedRows |
( |
$ |
value | ) |
|
KDB_PDO::setCachedStatement |
( |
$ |
id, |
|
|
PDOStatement $ |
statement |
|
) |
| [protected] |
KDB_PDO::statement |
( |
$ |
sql, |
|
|
array $ |
opts = array() |
|
) |
| [protected] |
Field Documentation
int null KDB_PDO::$affectedRows [protected] |
array KDB_PDO::$cachedStatements [protected] |
PDOStatement KDB_PDO::$lastStatement [protected] |
The documentation for this class was generated from the following file: