Class anyDB

Description

Factory class for anyDB

This class provides the different db layers.

Don't instanciate this class.
Use 'anyDB::methodName()' instead.

Located in /core/anyDB/anyDB.php (line 43)

UtilityClass
   |
   --anyDB
Method Summary
AbstractDB checkForDB (String $dbType)
AbstractDB getLayer (String $layerType, String $libraryPath, String $dbType, [Integer $preferredResType = ANYDB_RES_ASSOC])
AbstractDB wrapDB (String &$dbIdentifier, String $libraryPath, [Integer $preferredResType = ANYDB_RES_ASSOC])
Methods
checkForDB (line 227)

Checks if php extension for this db type is loaded

  • access: public
  • abstract:
AbstractDB checkForDB (String $dbType)
  • String $dbType: db type
getLayer (line 59)

Creates a new db layer

  • access: public
  • abstract:
AbstractDB getLayer (String $layerType, String $libraryPath, String $dbType, [Integer $preferredResType = ANYDB_RES_ASSOC])
  • String $layerType: 'ADODB', 'METABASE', 'MYSQL', 'PEAR', PHPLIB'
  • String $libraryPath: path to the abstraction layer
  • String $dbType: for the abstraction layers (e.g. 'ODBC')
  • Integer $preferredResType: the preferred result type
wrapDB (line 122)

Get a db layer for an existing db resource

  • access: public
  • abstract:
AbstractDB wrapDB (String &$dbIdentifier, String $libraryPath, [Integer $preferredResType = ANYDB_RES_ASSOC])
  • String $dbIdentifier: db resource
  • String $libraryPath: path to the abstraction layer
  • Integer $preferredResType: the preferred result type

Inherited Methods

Inherited From UtilityClass

UtilityClass::UtilityClass()

Documentation generated on Tue, 4 Oct 2005 21:58:47 -0700 by phpDocumentor 1.3.0RC3