core/xpdo/om/xpdodriver.class.php

Show: inherited
Table of Contents

The xPDODriver class provides the baseline driver specific abstraction.

Package
xpdo  
Subpackage
om  

\xPDODriver

Package: xpdo\om

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.

Children
\xPDODriver_sqlite
\xPDODriver_mysql
\xPDODriver_sqlsrv
Abstract
 

Properties

Propertypublicarray  $_currentDates= 'array()'

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

Default valuearray()Details
Type
array
Propertypublicarray  $_currentTimes= 'array()'

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

Default valuearray()Details
Type
array
Propertypublicarray  $_currentTimestamps= 'array()'

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

Default valuearray()Details
Type
array
Propertypublicarray  $dbtypes= 'array ()'

Describes the physical database types.
Default valuearray ()Details
Type
array
Propertypublic  $escapeCloseChar= ''''
Default value''Details
Type
n/a
Propertypublic  $escapeOpenChar= ''''
Default value''Details
Type
n/a
Propertypublic  $quoteChar= ''''
Default value''Details
Type
n/a
Propertypublic\xPDO  $xpdo= 'null'

A reference to the XPDO instance using this manager.
Default valuenullDetails
Type
\xPDO
Access
public  

Methods

methodpublic__construct( \xPDO $xpdo ) : void

Get an xPDODriver instance.

Parameters
Name Type Description
$xpdo \xPDO

A reference to a specific xPDO instance.

methodpublicgetPhpType( string $dbtype ) : string

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

Parameters
Name Type Description
$dbtype string

The database field type to convert.

Returns
Type Description
string The associated PHP type
Details
Access
public  
Documentation was generated by DocBlox 0.18.1.