DboFirebird Class Reference

Public Member Functions | |
| _execute ($sql) | |
| column ($real) | |
| connect () | |
| describe (&$model) | |
| disconnect () | |
| fetchResult () | |
| fetchRow () | |
| lastAffected () | |
| lastError () | |
| lastInsertId ($source=null, $field= 'id') | |
| lastNumRows () | |
| limit ($limit, $offset=null) | |
| listSources () | |
| name ($data) | |
| renderStatement ($type, $data) | |
| resultSet (&$results) | |
| update (&$model, $fields=array(), $values=array()) | |
| value ($data, $column=null, $safe=false) | |
Public Attributes | |
| $_baseConfig | |
| $alias = ' ' | |
| $columns | |
| $description = "Firebird/Interbase DBO Driver" | |
| $endQuote = "\'" | |
| $goofyLimit = true | |
| $modeltmp = array() | |
| $startQuote = "\'" | |
Detailed Description
Definition at line 37 of file dbo_firebird.php.
Member Function Documentation
| DboFirebird::_execute | ( | $ | sql | ) |
Executes given SQL statement.
- Parameters:
-
string $sql SQL statement
- Returns:
- resource Result resource identifier protected
Definition at line 141 of file dbo_firebird.php.
| DboFirebird::column | ( | $ | real | ) |
Converts database-layer column types to basic types
- Parameters:
-
string $real Real database-layer column type (i.e. "varchar(255)")
- Returns:
- string Abstract column type (i.e. "string")
Reimplemented from DataSource.
Definition at line 390 of file dbo_firebird.php.
References limit(), and name().
Referenced by describe().
| DboFirebird::connect | ( | ) |
Connects to the database using options in the given configuration array.
- Returns:
- boolean True if the database could be connected, else false
Definition at line 117 of file dbo_firebird.php.
References DataSource::$config, and config().
| DboFirebird::describe | ( | &$ | model | ) |
Returns an array of the fields in given table name.
- Returns:
- array Fields in table. Keys are name and type
Definition at line 190 of file dbo_firebird.php.
References column(), DboSource::fullTableName(), DboSource::length(), and name().
| DboFirebird::disconnect | ( | ) |
Disconnects from database.
- Returns:
- boolean True if the database could be disconnected, else false
Definition at line 130 of file dbo_firebird.php.
| DboFirebird::fetchResult | ( | ) |
Fetches the next row from the current result set
- Returns:
- unknown
Definition at line 487 of file dbo_firebird.php.
References DboSource::$index.
Referenced by fetchRow().
| DboFirebird::fetchRow | ( | ) |
Returns a row from given resultset as an array .
- Returns:
- array The fetched row as an array
Definition at line 152 of file dbo_firebird.php.
References fetchResult(), DboSource::hasResult(), and resultSet().
Referenced by lastInsertId().
| DboFirebird::lastAffected | ( | ) |
Returns number of affected rows in previous database operation. If no previous operation exists, this returns false.
- Returns:
- integer Number of affected rows
Definition at line 308 of file dbo_firebird.php.
| DboFirebird::lastError | ( | ) |
Returns a formatted error message from previous database operation.
- Returns:
- string Error message with error number
Definition at line 294 of file dbo_firebird.php.
References DataSource::$error.
| DboFirebird::lastInsertId | ( | $ | source = null, |
|
| $ | field = 'id' | |||
| ) |
Returns the ID generated from the previous INSERT operation.
- Parameters:
-
unknown_type $source
- Returns:
- in
Definition at line 329 of file dbo_firebird.php.
References $pos, $res, fetchRow(), and DboSource::rawQuery().
| DboFirebird::lastNumRows | ( | ) |
Returns number of rows in previous resultset. If no previous resultset exists, this returns false.
- Returns:
- integer Number of rows in resultset
Definition at line 320 of file dbo_firebird.php.
| DboFirebird::limit | ( | $ | limit, | |
| $ | offset = null | |||
| ) |
Returns a limit statement in the correct format for the particular database.
- Parameters:
-
integer $limit Limit of results returned integer $offset Offset from which to start results
- Returns:
- string SQL limit/offset statement
Reimplemented from DboSource.
Definition at line 368 of file dbo_firebird.php.
Referenced by column().
| DboFirebird::listSources | ( | ) |
Returns an array of sources (tables) in the database.
- Returns:
- array Array of tablenames in the database
Definition at line 166 of file dbo_firebird.php.
| DboFirebird::name | ( | $ | data | ) |
Returns a quoted name of $data for use in an SQL statement.
- Parameters:
-
string $data Name (table.field) to be prepared for use in an SQL statement
- Returns:
- string Quoted for Firebird
Reimplemented from DboSource.
Definition at line 220 of file dbo_firebird.php.
References $pos.
Referenced by column(), and describe().
| DboFirebird::renderStatement | ( | $ | type, | |
| $ | data | |||
| ) |
Builds final SQL statement
- Parameters:
-
string $type Query type array $data Query data
- Returns:
- string
Reimplemented from DboSource.
Definition at line 464 of file dbo_firebird.php.
| DboFirebird::resultSet | ( | &$ | results | ) |
Enter description here...
- Parameters:
-
unknown_type $results
Definition at line 440 of file dbo_firebird.php.
References DboSource::$index.
Referenced by fetchRow().
| DboFirebird::update | ( | &$ | model, | |
| $ | fields = array(), |
|||
| $ | values = array() | |||
| ) |
Removes Identity (primary key) column from update data before returning to parent
- Parameters:
-
Model $model array $fields array $values
- Returns:
- array
Reimplemented from DataSource.
Definition at line 279 of file dbo_firebird.php.
| DboFirebird::value | ( | $ | data, | |
| $ | column = null, |
|||
| $ | safe = false | |||
| ) |
Returns a quoted and escaped string of $data for use in an SQL statement.
- Parameters:
-
string $data String to be prepared for use in an SQL statement string $column 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
- Returns:
- string Quoted and escaped data
Definition at line 244 of file dbo_firebird.php.
References DboSource::boolean().
Member Data Documentation
| DboFirebird::$_baseConfig |
Initial value:
array(
'persistent' => true,
'host' => 'localhost',
'login' => 'SYSDBA',
'password' => 'masterkey',
'database' => 'c:\\CAKE.FDB',
'port' => '3050',
'connect' => 'ibase_connect'
)
Reimplemented from DataSource.
Definition at line 85 of file dbo_firebird.php.
| DboFirebird::$alias = ' ' |
| DboFirebird::$columns |
Initial value:
array(
'primary_key' => array('name' => 'IDENTITY (1, 1) NOT NULL'),
'string' => array('name' => 'varchar', 'limit' => '255'),
'text' => array('name' => 'BLOB SUB_TYPE 1 SEGMENT SIZE 100 CHARACTER SET NONE'),
'integer' => array('name' => 'integer'),
'float' => array('name' => 'float', 'formatter' => 'floatval'),
'datetime' => array('name' => 'timestamp', 'format' => 'd.m.Y H:i:s', 'formatter' => 'date'),
'timestamp' => array('name' => 'timestamp', 'format' => 'd.m.Y H:i:s', 'formatter' => 'date'),
'time' => array('name' => 'time', 'format' => 'H:i:s', 'formatter' => 'date'),
'date' => array('name' => 'date', 'format' => 'd.m.Y', 'formatter' => 'date'),
'binary' => array('name' => 'blob'),
'boolean' => array('name' => 'smallint')
)
Definition at line 99 of file dbo_firebird.php.
| DboFirebird::$description = "Firebird/Interbase DBO Driver" |
| DboFirebird::$endQuote = "\'" |
| DboFirebird::$goofyLimit = true |
Definition at line 73 of file dbo_firebird.php.
| DboFirebird::$modeltmp = array() |
Definition at line 49 of file dbo_firebird.php.
| DboFirebird::$startQuote = "\'" |
The documentation for this class was generated from the following file:
- 1.2.x.x/cake/libs/model/datasources/dbo/dbo_firebird.php