Zend_Db_Adapter_AbstractClass for connecting to SQL databases and performing common operations.
Located in /library/Zend/Db/Adapter/Abstract.php (line 39)
| Class | Description |
|---|---|
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 47)
User-provided configuration
object|resource|null
$_connection
= null (line 68)
Database connection
integer
$_fetchMode
= Zend_Db::FETCH_ASSOC (line 54)
Fetch mode
Zend_Db_Profiler
$_profiler
(line 61)
Query profiler
Constructor __construct (line 84)
Constructor.
$config is an array of key/value pairs containing configuration options. These options are common to most adapters:
username => (string) Connect to the database as this username. password => (string) Password associated with the username. host => (string) What host to connect to (default 127.0.0.1) dbname => (string) The name of the database to user
beginTransaction (line 167)
Leave autocommit mode and begin a transaction.
commit (line 181)
Commit a transaction and return to autocommit mode.
delete (line 263)
Deletes table rows based on a WHERE clause.
describeTable (line 471)
Returns the column descriptions for a table.
fetchAll (line 304)
Fetches all SQL result rows as a sequential array.
fetchAssoc (line 321)
Fetches all SQL result rows as an associative array.
The first column is the key, the entire row array is the value.
fetchCol (line 342)
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 377)
Fetches the first column of the first row of the SQL result.
fetchPairs (line 359)
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 391)
Fetches the first row of the SQL result.
getConnection (line 116)
Returns the underlying database connection object or resource. If not presently connected, this may return null.
getFetchMode (line 291)
Get the fetch mode.
insert (line 213)
Inserts a table row with specified data.
lastInsertId (line 506)
Gets the last inserted ID.
limit (line 541)
Adds an adapter-specific LIMIT clause to the SELECT statement.
listTables (line 463)
Returns a list of the tables in the database.
prepare (line 497)
Prepare a statement and return a PDOStatement-like object.
query (line 140)
Prepares and executes an SQL statement with bound data.
quote (line 407)
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 455)
Quotes an identifier.
quoteInto (line 438)
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:
- $text = "WHERE date < ?";
- $date = "2005-01-02";
- $safe = $sql->quoteInto($text, $date);
- // $safe = "WHERE date < '2005-01-02'"
rollBack (line 196)
Roll back a transaction and return to autocommit mode.
select (line 280)
Creates and returns a new Zend_Db_Select object for this adapter.
setFetchMode (line 532)
Set the fetch mode.
update (line 237)
Updates table rows with specified data based on a WHERE clause.
_beginTransaction (line 512)
Begin a transaction.
_commit (line 518)
Commit a transaction.
_connect (line 488)
Creates a connection to the database.
_quote (line 480)
Quote a raw string.
_rollBack (line 524)
Roll-back a transaction.
Documentation generated on Wed, 08 Mar 2006 04:50:54 -0800 by phpDocumentor 1.3.0RC4