KWeb  6.4
KDB_Legacy Class Reference
Inheritance diagram for KDB_Legacy:
KDB_Driver

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:
$paramsConnection 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:
$resultObject/resource returned from query() or null to use the last one
unknown_type$result

Reimplemented from KDB_Driver.

KDB_Legacy::connect ( )
Exceptions:
KDBException

Reimplemented from KDB_Driver.

KDB_Legacy::disconnect ( )

Reimplemented from KDB_Driver.

KDB_Legacy::doBegin ( ) [protected]

Reimplemented from KDB_Driver.

KDB_Legacy::doCommit ( ) [protected]

Reimplemented from KDB_Driver.

KDB_Legacy::doQuery ( sql,
array $  bind = array(),
array $  opts = array() 
)

Reimplemented from KDB_Driver.

KDB_Legacy::doRollback ( ) [protected]

Reimplemented from KDB_Driver.

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:
$resultObject/resource returned from query() or null to use the last one
array$optsAdditional 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)

Reimplemented from KDB_Driver.

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:
$resultObject/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)

Reimplemented from KDB_Driver.

KDB_Legacy::getVersion ( )

Reimplemented from KDB_Driver.

KDB_Legacy::isConnected ( )

Reimplemented from KDB_Driver.

KDB_Legacy::quote ( value,
handleTypes = true 
)

Reimplemented from KDB_Driver.

KDB_Legacy::quoteArray ( arr,
handleTypes = true 
)

Reimplemented from KDB_Driver.

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: