Class Zend_Db_Adapter_Mysqli

Description

Located in /Db/Adapter/Mysqli.php (line 53)

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 $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 199)

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 82)

Returns the column descriptions for a table.

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

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 253)

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 310)

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

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

Returns a list of the tables in the database.

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

Prepare a statement and return a PDOStatement-like object.

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

Quotes an identifier.

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

Set the fetch mode.

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

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 262)

Begin a transaction.

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

Commit a transaction.

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

Creates a connection to the database.

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

Quote a raw string.

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

Roll-back a transaction.

  • access: protected
void _rollBack ()

Documentation generated on Thu, 18 Jan 2007 10:01:06 -0800 by phpDocumentor 1.3.1