Zend_Db_Adapter_AbstractClass for connecting to SQL databases and performing common operations.
Located in /Zend/Db/Adapter/Abstract.php (line 42)
| Class | Description |
|---|---|
Zend_Db_Adapter_Db2
|
|
Zend_Db_Adapter_Oracle
|
|
Zend_Db_Adapter_Pdo_Abstract
|
Class for connecting to SQL databases and performing common operations using PDO. |
array
$_config
= array() (line 50)
User-provided configuration
object|resource|null
$_connection
= null (line 71)
Database connection
integer
$_fetchMode
= Zend_Db::FETCH_ASSOC (line 57)
Fetch mode
Zend_Db_Profiler
$_profiler
(line 64)
Query profiler
Constructor __construct (line 87)
Constructor.
$config is an array of key/value pairs containing configuration options. These options are common to most adapters:
dbname => (string) The name of the database to user (required) username => (string) Connect to the database as this username (optional). password => (string) Password associated with the username (optional). host => (string) What host to connect to (default 127.0.0.1).
beginTransaction (line 170)
Leave autocommit mode and begin a transaction.
commit (line 184)
Commit a transaction and return to autocommit mode.
delete (line 266)
Deletes table rows based on a WHERE clause.
describeTable (line 474)
Returns the column descriptions for a table.
fetchAll (line 307)
Fetches all SQL result rows as a sequential array.
fetchAssoc (line 324)
Fetches all SQL result rows as an associative array.
The first column is the key, the entire row array is the value.
fetchCol (line 345)
Fetches the first column of all SQL result rows as an array.
The first column in each row is used as the array key.
fetchOne (line 380)
Fetches the first column of the first row of the SQL result.
fetchPairs (line 362)
Fetches all SQL result rows as an array of key-value pairs.
The first column is the key, the second column is the value.
fetchRow (line 394)
Fetches the first row of the SQL result.
getConnection (line 119)
Returns the underlying database connection object or resource. If not presently connected, this may return null.
getFetchMode (line 294)
Get the fetch mode.
insert (line 216)
Inserts a table row with specified data.
lastInsertId (line 510)
Gets the last inserted ID.
limit (line 545)
Adds an adapter-specific LIMIT clause to the SELECT statement.
listTables (line 466)
Returns a list of the tables in the database.
prepare (line 500)
Prepare a statement and return a PDOStatement-like object.
query (line 143)
Prepares and executes an SQL statement with bound data.
quote (line 410)
Safely quotes a value for an SQL statement.
If an array is passed as the value, the array values are quoted and then returned as a comma-separated string.
quoteIdentifier (line 458)
Quotes an identifier.
quoteInto (line 441)
Quotes a value and places into a piece of text at a placeholder.
The placeholder is a question-mark; all placeholders will be replaced with the quoted value. For example:
rollBack (line 199)
Roll back a transaction and return to autocommit mode.
select (line 283)
Creates and returns a new Zend_Db_Select object for this adapter.
setFetchMode (line 536)
Set the fetch mode.
update (line 240)
Updates table rows with specified data based on a WHERE clause.
_beginTransaction (line 516)
Begin a transaction.
_commit (line 522)
Commit a transaction.
_connect (line 491)
Creates a connection to the database.
_quote (line 483)
Quote a raw string.
_rollBack (line 528)
Roll-back a transaction.
Documentation generated on Tue, 11 Jul 2006 12:16:24 -0500 by phpDocumentor 1.3.0RC6