Solutions Open Source

Référence de la classe DB

Liste de tous les membres

Fonctions membres publiques

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


Description détaillée

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.

Documentation des fonctions membres

& DB::factory ( type  ) 

Create a new DB object for the specified database type

Paramètres:
$type string database type, for example "mysql"
Renvoie:
object a newly created DB object, or a DB error code on error

& DB::connect ( dsn,
options = false 
)

Create a new DB object and connect to the specified database

Paramètres:
$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.
Renvoie:
object a newly created DB connection object, or a DB error object on error
Voir également:
DB::parseDSN

DB::isError

DB::apiVersion (  ) 

Return the DB API version

Renvoie:
int the DB API version number

DB::isError ( value  ) 

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

Paramètres:
$value int result code
Renvoie:
bool whether $value is an error

DB::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.

Paramètres:
$value mixed result value
Renvoie:
bool whether $value is a warning

DB::parseDSN ( dsn  ) 

DB::assertExtension ( name  ) 

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

public

Paramètres:
$name the base name of the extension (without the .so or .dll suffix)
Renvoie:
bool true if the extension was already or successfully loaded, false if it could not be loaded


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:40:49 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3