Abstract Class xPDODriver

Description

Provides driver specific members and methods for an xPDO instance.

These are baseline members and methods that need to be loaded every time an xPDO instance makes a connection. xPDODriver class implementations are specific to a database driver and should include this base class in order to extend it.

Located in /om/xpdodriver.class.php (line 40)


	
			
Direct descendents
Class Description
 class xPDODriver_mysql Provides mysql driver abstraction for an xPDO instance.
 class xPDODriver_sqlite Provides sqlite driver abstraction for an xPDO instance.
 class xPDODriver_sqlsrv Provides sqlsrv driver abstraction for an xPDO instance.
Variable Summary
Method Summary
 xPDODriver __construct ( &$xpdo, object $xpdo)
 string getPhpType (string $dbtype)
Variables
array $dbtypes = array () (line 49)
  • var: Describes the physical database types.
  • access: public
xPDO $xpdo = null (line 45)
  • var: A reference to the XPDO instance using this manager.
  • access: public
array $_currentDates = array() (line 59)

An array of DB constants/functions that represent date values.

  • access: public

Redefined in descendants as:
array $_currentTimes = array() (line 64)

An array of DB constants/functions that represent time values.

  • access: public

Redefined in descendants as:
array $_currentTimestamps = array() (line 54)

An array of DB constants/functions that represent timestamp values.

  • access: public

Redefined in descendants as:
Methods
Constructor __construct (line 71)

Get an xPDODriver instance.

  • access: public
xPDODriver __construct ( &$xpdo, object $xpdo)
  • object $xpdo: A reference to a specific xPDO instance.
  • &$xpdo

Redefined in descendants as:
getPhpType (line 84)

Gets the PHP field type based upon the specified database type.

  • return: The associated PHP type
  • access: public
string getPhpType (string $dbtype)
  • string $dbtype: The database field type to convert.

Documentation generated on Mon, 27 Dec 2010 11:08:27 -0700 by phpDocumentor 1.4.3