Class Horde_Rdo_Adapter_Mysqli

Description

MySQL Improved Horde_Rdo adapter

Located in /Rdo/lib/Horde/Rdo/Adapter/Mysqli.php (line 13)

Horde_Rdo_Adapter
   |
   --Horde_Rdo_Adapter_Mysqli
Variable Summary
 mysqli $_db
 integer $_lastInsertId
Method Summary
 Horde_Rdo_Adapter_Mysqli __construct ([array $options = array()])
 void __destruct ()
 void commit ()
 integer execute (string $sql, [array $bindParams = array()])
 void loadModel (Horde_Rdo_Model $model)
 void rollBack ()
 PDOStatement select (string $sql, [array $bindParams = array()])
 mixed selectCol (string $sql, [ $bindParams = array()])
 mixed selectOne (string $sql, [ $bindParams = array()])
 void _connect ()
 integer _lastInsertId (string $sequence)
 mysqli_stmt _prepare (string $stmt, [array $bindParams = array()])
Variables
mysqli $_db = null (line 20)

Mysqli database connection object.

  • access: protected
integer $_lastInsertId (line 27)

Last generated insert_id.

  • access: protected

Inherited Variables

Inherited from Horde_Rdo_Adapter

Horde_Rdo_Adapter::$dml
Horde_Rdo_Adapter::$_options
Methods
Constructor __construct (line 34)

Get the appropriate DML object and call the parent constructor.

  • access: public
Horde_Rdo_Adapter_Mysqli __construct ([array $options = array()])
  • array $options: Connection options.

Redefinition of:
Horde_Rdo_Adapter::__construct()
Horde_Rdo_Adapter constructor. Sets options and sets up a connection if necessary.
Destructor __destruct (line 43)

Free any resources that are open.

  • access: public
void __destruct ()
beginTransaction (line 147)
  • access: public
void beginTransaction ()

Redefinition of:
Horde_Rdo_Adapter::beginTransaction()
commit (line 154)
  • access: public
void commit ()

Redefinition of:
Horde_Rdo_Adapter::commit()
execute (line 135)

Use for INSERT, UPDATE, DELETE, and other queries that don't return rows. Returns number of affected rows.

  • return: The number of rows affected by $sql.
  • access: public
integer execute (string $sql, [array $bindParams = array()])
  • string $sql: The query to run.
  • array $bindParams: Any parameters to bind to the query.

Redefinition of:
Horde_Rdo_Adapter::execute()
Use for INSERT, UPDATE, DELETE, and other queries that don't return rows. Returns number of affected rows.
loadModel (line 56)

Get a description of the database table that $model is going to reflect.

  • access: public
void loadModel (Horde_Rdo_Model $model)

Redefinition of:
Horde_Rdo_Adapter::loadModel()
Get a description of the database table that $model is going to reflect.
rollBack (line 161)
  • access: public
void rollBack ()

Redefinition of:
Horde_Rdo_Adapter::rollBack()
select (line 77)

Use for SELECT and anything that returns rows.

  • return: Result set.
  • access: public
PDOStatement select (string $sql, [array $bindParams = array()])
  • string $sql: A full SQL query to run.
  • array $bindParams: Any parameters to bind to the query.

Redefinition of:
Horde_Rdo_Adapter::select()
Use for SELECT and anything that returns rows.
selectCol (line 111)

Return a single column from a query.

  • return: The first column of all rows matched by $sql.
  • access: public
mixed selectCol (string $sql, [ $bindParams = array()])
  • string $sql: The SQL to get one column from.
  • $bindParams

Redefinition of:
Horde_Rdo_Adapter::selectCol()
Return a single column from a query.
selectOne (line 91)

Return a single value from a query. Useful for quickly getting a value such as with a COUNT(*) query.

  • return: The first value of the first row matched by $sql.
  • access: public
mixed selectOne (string $sql, [ $bindParams = array()])
  • string $sql: The SQL to get one result from.
  • $bindParams

Redefinition of:
Horde_Rdo_Adapter::selectOne()
Return a single value from a query. Useful for quickly getting a value such as with a COUNT(*) query.
_connect (line 169)

Build a connection string and connect to the database server.

  • access: protected
void _connect ()
_lastInsertId (line 247)
  • return: The last auto-generated row id for $sequence
  • access: protected
integer _lastInsertId (string $sequence)
  • string $sequence: The name of the sequence to get the latest value in (ignored in this driver).
_prepare (line 194)

Prepare a statement for MySQLi - we have to detect data types to call bind_param() correctly.

  • return: A prepared statement with data bound, ready to run.
  • access: protected
mysqli_stmt _prepare (string $stmt, [array $bindParams = array()])
  • string $stmt: The statement object or raw SQL to run.
  • array $bindParams: Any parameters to bind to the statement.

Inherited Methods

Inherited From Horde_Rdo_Adapter

 Horde_Rdo_Adapter::__construct()
 Horde_Rdo_Adapter::beginTransaction()
 Horde_Rdo_Adapter::commit()
 Horde_Rdo_Adapter::count()
 Horde_Rdo_Adapter::create()
 Horde_Rdo_Adapter::delete()
 Horde_Rdo_Adapter::execute()
 Horde_Rdo_Adapter::exists()
 Horde_Rdo_Adapter::factory()
 Horde_Rdo_Adapter::getOption()
 Horde_Rdo_Adapter::loadModel()
 Horde_Rdo_Adapter::query()
 Horde_Rdo_Adapter::queryCol()
 Horde_Rdo_Adapter::queryOne()
 Horde_Rdo_Adapter::rollBack()
 Horde_Rdo_Adapter::select()
 Horde_Rdo_Adapter::selectCol()
 Horde_Rdo_Adapter::selectOne()
 Horde_Rdo_Adapter::setOption()
 Horde_Rdo_Adapter::update()

Documentation generated on Sun, 30 Jan 2011 05:19:56 +0000 by phpDocumentor 1.4.3