[ Index ] |
|
Code source de Mantis 1.1.0rc3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Version: | V4.94 23 Jan 2007 (c) 2000-2007 John Lim (jlim#natsoft.com.my). All rights reserved. |
Poids: | 374 lignes (10 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 2 fichiers core/adodb/adodb.inc.php core/adodb/adodb-errorpear.inc.php |
DB:: (7 méthodes):
factory()
connect()
apiVersion()
isError()
isWarning()
parseDSN()
assertExtension()
factory($type) X-Ref |
Create a new DB object for the specified database type param: $type string database type, for example "mysql" return: object a newly created DB object, or a DB error code on |
connect($dsn, $options = false) X-Ref |
Create a new DB object and connect to the specified database param: $dsn mixed "data source name", see the DB::parseDSN param: $options mixed if boolean (or scalar), tells whether return: object a newly created DB connection object, or a DB |
apiVersion() X-Ref |
Return the DB API version return: int the DB API version number |
isError($value) X-Ref |
Tell whether a result code from a DB method is an error param: $value int result code return: bool whether $value is an error |
isWarning($value) X-Ref |
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: $value mixed result value return: bool whether $value is a warning |
parseDSN($dsn) X-Ref |
Parse a data source name author: Tomas V.V.Cox <cox@idecnet.com> param: $dsn string Data Source Name to be parsed return: array an associative array with the following keys: |
assertExtension($name) X-Ref |
Load a PHP database extension if it is not loaded already. param: $name the base name of the extension (without the .so or return: bool true if the extension was already or successfully |
Généré le : Thu Nov 29 09:42:17 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |