Öffentliche Methoden | |
factory ($type) | |
connect ($dsn, $options=false) | |
apiVersion () | |
isError ($value) | |
isWarning ($value) | |
parseDSN ($dsn) | |
assertExtension ($name) | |
The main "DB" class is simply a container class with some static methods for creating DB objects as well as some utility functions common to all parts of DB.
Definiert in Zeile 101 der Datei adodb-pear.inc.php.
apiVersion | ( | ) |
Return the DB API version
Definiert in Zeile 199 der Datei adodb-pear.inc.php.
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) |
Definiert in Zeile 361 der Datei adodb-pear.inc.php.
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. |
Definiert in Zeile 139 der Datei adodb-pear.inc.php.
Benutzt $dsn, $ok, ADODB_PEAR_Error() und parseDSN().
factory | ( | $type) |
Create a new DB object for the specified database type
$type | string database type, for example "mysql" |
Definiert in Zeile 112 der Datei adodb-pear.inc.php.
isError | ( | $value) |
Tell whether a result code from a DB method is an error
$value | int result code |
Definiert in Zeile 211 der Datei adodb-pear.inc.php.
Wird benutzt von Auth_Container_ADOdb\addUser(), Auth_Container_ADOdb\fetchData(), Auth_Container_ADOdb\listUsers() und Auth_Container_ADOdb\removeUser().
isWarning | ( | $value) |
Tell whether a result code from a DB method is a warning. Warnings differ from errors in that they are generated by DB, and are not fatal.
$value | mixed result value |
Definiert in Zeile 229 der Datei adodb-pear.inc.php.
parseDSN | ( | $dsn) |
Definiert in Zeile 270 der Datei adodb-pear.inc.php.
Benutzt $dsn.
Wird benutzt von connect().