Class Zend_Db_Adapter_MySQLi

Description

Located in /Zend/Db/Adapter/Mysqli.php (line 55)

Zend_Db_Adapter_Abstract
   |
   --Zend_Db_Adapter_MySQLi
Method Summary
int delete (string $table, string $where)
array describeTable ( $table)
void fetchAll ( $sql)
void fetchRow ( $sql, [ $bind = null])
int insert (string $table, array $bind)
integer lastInsertId ([string $tableName = null], [string $primaryKey = null])
string limit ( $sql,  $count,  $offset)
array listTables ()
Zend_Db_Statment|PDOStatement prepare (string $sql)
void query ( $sql, [ $bind = array()])
string quoteIdentifier ( $string, string $ident)
void setFetchMode (integer $mode)
int update (string $table, array $bind, string $where)
void _commit ()
void _connect ()
string _quote (string $value)
void _rollBack ()
Methods
delete (line 237)

Deletes table rows based on a WHERE clause.

  • return: The number of affected rows.
  • access: public
int delete (string $table, string $where)
  • string $table: The table to udpate.
  • string $where: DELETE WHERE clause.
describeTable (line 90)

Returns the column descriptions for a table.

  • access: public
array describeTable ( $table)
  • $table
fetchAll (line 155)
  • access: public
void fetchAll ( $sql)
  • $sql
fetchRow (line 148)
  • access: public
void fetchRow ( $sql, [ $bind = null])
  • $sql
  • $bind
insert (line 184)

Inserts a table row with specified data.

  • return: The number of affected rows.
  • access: public
int insert (string $table, array $bind)
  • string $table: The table to insert data into.
  • array $bind: Column-value pairs.
lastInsertId (line 299)

Gets the last inserted ID.

  • access: public
integer lastInsertId ([string $tableName = null], [string $primaryKey = null])
  • string $tableName: name of table (or sequence) associated with sequence
  • string $primaryKey: primary key in $tableName
limit (line 367)

Adds an adapter-specific LIMIT clause to the SELECT statement.

  • access: public
string limit ( $sql,  $count,  $offset)
  • $sql
  • $count
  • $offset
listTables (line 78)

Returns a list of the tables in the database.

  • access: public
array listTables ()
prepare (line 284)

Prepare a statement and return a PDOStatement-like object.

  • access: public
Zend_Db_Statment|PDOStatement prepare (string $sql)
  • string $sql: SQL query
query (line 129)
  • access: public
void query ( $sql, [ $bind = array()])
  • $sql
  • $bind
quoteIdentifier (line 65)

Quotes an identifier.

  • return: The quoted identifier.
  • access: public
string quoteIdentifier ( $string, string $ident)
  • string $ident: The identifier.
  • $string
setFetchMode (line 342)

Set the fetch mode.

  • access: public
void setFetchMode (integer $mode)
  • integer $mode
update (line 210)

Updates table rows with specified data based on a WHERE clause.

  • return: The number of affected rows.
  • access: public
int update (string $table, array $bind, string $where)
  • string $table: The table to udpate.
  • array $bind: Column-value pairs.
  • string $where: UPDATE WHERE clause.
_beginTransaction (line 310)

Begin a transaction.

  • access: protected
void _beginTransaction ()
_commit (line 320)

Commit a transaction.

  • access: protected
void _commit ()
_connect (line 267)

Creates a connection to the database.

  • access: protected
void _connect ()
_quote (line 255)

Quote a raw string.

  • return: Quoted string
  • access: protected
string _quote (string $value)
  • string $value: Raw string
_rollBack (line 330)

Roll-back a transaction.

  • access: protected
void _rollBack ()

Documentation generated on Sun, 29 Oct 2006 21:27:59 -0600 by phpDocumentor 1.3.0RC6