Fonctions membres publiques | |
| & | factory ($type) |
| & | connect ($dsn, $options=false) |
| apiVersion () | |
| isError ($value) | |
| isWarning ($value) | |
| parseDSN ($dsn) | |
| assertExtension ($name) | |
| & DB::factory | ( | $ | type | ) |
| & DB::connect | ( | $ | dsn, | |
| $ | options = false | |||
| ) |
Create a new DB object and connect to the specified database
| $dsn | mixed "data source name", see the DB::parseDSN method for a description of the dsn format. Can also be specified as an array of the format returned by DB::parseDSN. | |
| $options | mixed if boolean (or scalar), tells whether this connection should be persistent (for backends that support this). This parameter can also be an array of options, see DB_common::setOption for more information on connection options. |
| DB::isError | ( | $ | value | ) |
Tell whether a result code from a DB method is an error
| $value | int result code |
| DB::isWarning | ( | $ | value | ) |
| DB::parseDSN | ( | $ | dsn | ) |
| DB::assertExtension | ( | $ | name | ) |
Load a PHP database extension if it is not loaded already.
public
| $name | the base name of the extension (without the .so or .dll suffix) |
1.5.3