DB Klassenreferenz

DB Klassenreferenz

Öffentliche Methoden

 factory ($type)
 
 connect ($dsn, $options=false)
 
 apiVersion ()
 
 isError ($value)
 
 isWarning ($value)
 
 parseDSN ($dsn)
 
 assertExtension ($name)
 

Ausführliche Beschreibung

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.

Dokumentation der Elementfunktionen

apiVersion ( )

Return the DB API version

Rückgabe
int the DB API version number

Definiert in Zeile 199 der Datei adodb-pear.inc.php.

assertExtension (   $name)

Load a PHP database extension if it is not loaded already.

public

Parameter
$namethe base name of the extension (without the .so or .dll suffix)
Rückgabe
bool true if the extension was already or successfully loaded, false if it could not be loaded

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

Parameter
$dsnmixed "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.
$optionsmixed 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.
Rückgabe
object a newly created DB connection object, or a DB error object on error
Siehe auch
DB::parseDSN
DB::isError

Definiert in Zeile 139 der Datei adodb-pear.inc.php.

Benutzt $dsn, $ok, ADODB_PEAR_Error() und parseDSN().

Hier ist ein Graph, der zeigt, was diese Funktion aufruft:

factory (   $type)

Create a new DB object for the specified database type

Parameter
$typestring database type, for example "mysql"
Rückgabe
object a newly created DB object, or a DB error code on error

Definiert in Zeile 112 der Datei adodb-pear.inc.php.

isError (   $value)

Tell whether a result code from a DB method is an error

Parameter
$valueint result code
Rückgabe
bool whether $value is an error

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().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:

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.

Parameter
$valuemixed result value
Rückgabe
bool whether $value is a warning

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().

Hier ist ein Graph der zeigt, wo diese Funktion aufgerufen wird:


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:




Korrekturen, Hinweise und Ergänzungen

Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.