Inheritance diagram for DboAdodb:

Public Member Functions | |
| _execute ($sql) | |
| begin (&$model) | |
| buildColumn ($column) | |
| column ($real) | |
| commit (&$model) | |
| connect () | |
| describe (&$model) | |
| disconnect () | |
| fetchResult () | |
| fetchRow ($sql=null) | |
| fields (&$model, $alias=null, $fields=array(), $quote=true) | |
| hasResult () | |
| lastAffected () | |
| lastError () | |
| lastInsertId () | |
| lastNumRows () | |
| limit ($limit, $offset=null) | |
| listSources () | |
| resultSet (&$results) | |
| rollback (&$model) | |
| value ($data, $column=null, $safe=false) | |
Public Attributes | |
| $_adodb = null | |
| $_adodbColumnTypes | |
| $columns | |
| $description = "ADOdb DBO Driver" | |
Definition at line 39 of file dbo_adodb.php.
| DboAdodb::_execute | ( | $ | sql | ) |
Executes given SQL statement.
| string | $sql SQL statement |
Definition at line 131 of file dbo_adodb.php.
| DboAdodb::begin | ( | &$ | model | ) |
Begin a transaction
| unknown_type | $model |
Reimplemented from DboSource.
Definition at line 163 of file dbo_adodb.php.
| DboAdodb::buildColumn | ( | $ | column | ) |
Generate a database-native column schema string
| array | $column An array structured like the following: array('name'=>'value', 'type'=>'value'[, options]), where options can be 'default', 'length', or 'key'. |
Reimplemented from DboSource.
Definition at line 445 of file dbo_adodb.php.
References $out, DboSource::length(), limit(), DboSource::name(), and value().
| DboAdodb::column | ( | $ | real | ) |
Converts database-layer column types to basic types
| string | $real Real database-layer column type (i.e. "varchar(255)") |
Reimplemented from DataSource.
Definition at line 313 of file dbo_adodb.php.
Referenced by describe().
| DboAdodb::commit | ( | &$ | model | ) |
Commit a transaction
| unknown_type | $model |
Reimplemented from DboSource.
Definition at line 180 of file dbo_adodb.php.
| DboAdodb::connect | ( | ) |
Connects to the database using options in the given configuration array.
| array | $config Configuration array for connecting |
Definition at line 94 of file dbo_adodb.php.
References DataSource::$config, and config().
| DboAdodb::describe | ( | &$ | model | ) |
Returns an array of the fields in the table used by the given model.
Definition at line 221 of file dbo_adodb.php.
References DataSource::__cacheDescription(), column(), DboSource::fullTableName(), and DboSource::length().
| DboAdodb::disconnect | ( | ) |
Disconnects from database.
Definition at line 122 of file dbo_adodb.php.
| DboAdodb::fetchResult | ( | ) |
Fetches the next row from the current result set
Definition at line 416 of file dbo_adodb.php.
Referenced by fetchRow().
| DboAdodb::fetchRow | ( | $ | sql = null |
) |
Returns a row from current resultset as an array .
Reimplemented from DboSource.
Definition at line 141 of file dbo_adodb.php.
References DboSource::execute(), fetchResult(), hasResult(), and resultSet().
| DboAdodb::fields | ( | &$ | model, | |
| $ | alias = null, |
|||
| $ | fields = array(), |
|||
| $ | quote = true | |||
| ) |
Generates the fields list of an SQL query.
| Model | $model | |
| string | $alias Alias tablename | |
| mixed | $fields |
Reimplemented from DboSource.
Definition at line 355 of file dbo_adodb.php.
References DboSource::$alias, __(), and DboSource::name().
| DboAdodb::hasResult | ( | ) |
Checks if the result is valid
Reimplemented from DboSource.
Definition at line 512 of file dbo_adodb.php.
Referenced by fetchRow().
| DboAdodb::lastAffected | ( | ) |
Returns number of affected rows in previous database operation, or false if no previous operation exists.
Definition at line 260 of file dbo_adodb.php.
| DboAdodb::lastError | ( | ) |
Returns a formatted error message from previous database operation.
Definition at line 252 of file dbo_adodb.php.
| DboAdodb::lastInsertId | ( | ) |
Returns the ID generated from the previous INSERT operation.
the last autonumbering ID inserted. Returns false if function not supported.
Definition at line 278 of file dbo_adodb.php.
| DboAdodb::lastNumRows | ( | ) |
Returns number of rows in previous resultset, or false if no previous resultset exists.
Definition at line 268 of file dbo_adodb.php.
| DboAdodb::limit | ( | $ | limit, | |
| $ | offset = null | |||
| ) |
Returns a LIMIT statement in the correct format for the particular database.
| integer | $limit Limit of results returned | |
| integer | $offset Offset from which to start results |
Reimplemented from DboSource.
Definition at line 289 of file dbo_adodb.php.
Referenced by buildColumn().
| DboAdodb::listSources | ( | ) |
Returns an array of tables in the database. If there are no tables, an error is raised and the application exits.
Definition at line 206 of file dbo_adodb.php.
| DboAdodb::resultSet | ( | &$ | results | ) |
Build ResultSets and map data
| array | $results |
Definition at line 391 of file dbo_adodb.php.
References DboSource::$index, and __().
Referenced by fetchRow().
| DboAdodb::rollback | ( | &$ | model | ) |
Rollback a transaction
| unknown_type | $model |
Reimplemented from DboSource.
Definition at line 195 of file dbo_adodb.php.
| DboAdodb::value | ( | $ | data, | |
| $ | column = null, |
|||
| $ | safe = false | |||
| ) |
Returns a quoted and escaped string of $data for use in an SQL statement.
| string | $data String to be prepared for use in an SQL statement | |
| string | $column_type The type of the column into which this data will be inserted | |
| boolean | $safe Whether or not numeric data should be handled automagically if no column data is provided |
Reimplemented from DboSource.
Definition at line 331 of file dbo_adodb.php.
Referenced by buildColumn().
| DboAdodb::$_adodb = null |
Definition at line 52 of file dbo_adodb.php.
| DboAdodb::$_adodbColumnTypes |
Initial value:
array(
'string' => 'C',
'text' => 'X',
'date' => 'D',
'timestamp' => 'T',
'time' => 'T',
'datetime' => 'T',
'boolean' => 'L',
'float' => 'N',
'integer' => 'I',
'binary' => 'R',
)
Definition at line 59 of file dbo_adodb.php.
| DboAdodb::$columns |
Initial value:
array(
'primary_key' => array('name' => 'R', 'limit' => 11),
'string' => array('name' => 'C', 'limit' => '255'),
'text' => array('name' => 'X'),
'integer' => array('name' => 'I', 'limit' => '11', 'formatter' => 'intval'),
'float' => array('name' => 'N', 'formatter' => 'floatval'),
'timestamp' => array('name' => 'T', 'format' => 'Y-m-d H:i:s', 'formatter' => 'date'),
'time' => array('name' => 'T', 'format' => 'H:i:s', 'formatter' => 'date'),
'datetime' => array('name' => 'T', 'format' => 'Y-m-d H:i:s', 'formatter' => 'date'),
'date' => array('name' => 'D', 'format' => 'Y-m-d', 'formatter' => 'date'),
'binary' => array('name' => 'B'),
'boolean' => array('name' => 'L', 'limit' => '1')
)
Definition at line 76 of file dbo_adodb.php.
| DboAdodb::$description = "ADOdb DBO Driver" |
1.4.7