xpdo/om/xpdodriver.class.php

Classes 
package
xpdo
subpackage
om
Classes
xPDODriver

Description

The xPDODriver class provides the baseline driver specific abstraction.

\xPDODriver

abstract
package
xpdo
subpackage
om
Properties
$_currentDates
$_currentTimes
$_currentTimestamps
$dbtypes
$xpdo
Methods
__construct
getPhpType

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.

Properties

$_currentDates

array $_currentDates = 'array'

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

Details

array
visibility
public
default
array
final
false
static
false

$_currentTimes

array $_currentTimes = 'array'

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

Details

array
visibility
public
default
array
final
false
static
false

$_currentTimestamps

array $_currentTimestamps = 'array'

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

Details

array
visibility
public
default
array
final
false
static
false

$dbtypesDescribes the physical database types.

array $dbtypes = 'array'

Details

array
Describes the physical database types.
visibility
public
default
array
final
false
static
false

$xpdoA reference to the XPDO instance using this manager.

\xPDO $xpdo = 'null'

Details

\xPDO
A reference to the XPDO instance using this manager.
visibility
public
default
null
final
false
static
false
access
public

Methods

__construct

__construct( object $xpdo ) :

Get an xPDODriver instance.

Arguments
$xpdo
object
A reference to a specific xPDO instance.
Details
visibility
public
final
false
static
false

getPhpType

getPhpType( string $dbtype ) : string

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

Arguments
$dbtype
string
The database field type to convert.
Output
string
The associated PHP type
Details
visibility
public
final
false
static
false
access
public
Documentation was generated by DocBlox 0.11.2.