DB |
[ class tree: DB ] [ index: DB ] [ all elements ] |
Packages: DB Classes:
DB
Files:DB_common DB_dbase DB_Error DB_fbsql DB_ibase DB_ifx DB_msql DB_mssql DB_mysql DB_mysqli DB_oci8 DB_odbc DB_pgsql DB_result DB_row DB_sqlite DB_storage DB_sybase
common.php
DB.php dbase.php fbsql.php ibase.php ifx.php msql.php mssql.php mysql.php mysqli.php oci8.php odbc.php pgsql.php sqlite.php storage.php sybase.php |
[ Top ] $features = array(
|
Type: | array |
[line 55]
The DB driver type (mysql, oci8, odbc, etc.)Type: | string |
[line 119]
The quantity of results so farFor emulating result resources.
Type: | integer |
[line 110]
A means of emulating result resourcesType: | array |
[line 130]
Maps dbase data type id's to human readable stringsThe human readable values are based on the output of PHP's dbase_get_header_info() function.
Type: | array |
|
|
Don't call this method directly. Use DB::connect() instead.
PEAR DB's dbase driver supports the following extra DSN options:
- require_once 'DB.php';
-
- $dsn = array(
- 'phptype' => 'dbase',
- 'database' => '/path/and/name/of/dbase/file',
- 'mode' => 2,
- 'fields' => array(
- array('a', 'N', 5, 0),
- array('b', 'C', 40),
- array('c', 'C', 255),
- array('d', 'C', 20),
- ),
- );
- $options = array(
- 'debug' => 2,
- 'portability' => DB_PORTABILITY_ALL,
- );
-
- if (PEAR::isError($db)) {
- die($db->getMessage());
- }
array | $dsn | — | the data source name |
bool | $persistent | — | should the connection be persistent? |
|
|
Formating of the array and the data therein are configurable. See DB_result::fetchInto() for more information.
This method is not meant to be called directly. Use DB_result::fetchInto() instead. It can't be declared "protected" because DB_result is a separate object.
resource | $result | — | the query result resource |
array | $arr | — | the referenced array to put the data in |
int | $fetchmode | — | how the resulting array should be indexed |
int | $rownum | — | the row number to fetch (0 = first row) |
&$arr | — |
|
This method is a no-op for dbase, as there aren't result resources in the same sense as most other database backends.
resource | $result | — | PHP's query result resource |
|
This method is not meant to be called directly. Use DB_result::numCols() instead. It can't be declared "protected" because DB_result is a separate object.
resource | $result | — | PHP's query result resource |
$foo | — |
|
This method is not meant to be called directly. Use DB_result::numRows() instead. It can't be declared "protected" because DB_result is a separate object.
resource | $result | — | PHP's query result resource |
$foo | — |
|
$query | — |
|
boolean | $boolean | — | the boolean value to be quoted. |
|
mixed | $result | — | THIS IS UNUSED IN DBASE. The current database is examined regardless of what is provided here. |
int | $mode | — | a valid tableInfo mode |