core/xpdo/om/sqlite/xpdodriver.class.php
The sqlite implementation of the xPDODriver class.
- Package
- xpdo
- Subpackage
- om.sqlite
\xPDODriver_sqlite
Package: xpdo\om\sqlite
Provides sqlite driver abstraction for an xPDO instance.
This is baseline metadata and methods used throughout the framework. xPDODriver class implementations are specific to a PDO driver and this instance is implemented for sqlite.
- Parent(s)
- \xPDODriver
Properties

array
$_currentDates= 'array(
"CURRENT_DATE"
)'
An array of DB constants/functions that represent date values.
Default value
array(
"CURRENT_DATE"
)Details- Type
- array

array
$_currentTimes= 'array(
"CURRENT_TIME"
)'
An array of DB constants/functions that represent time values.
Default value
array(
"CURRENT_TIME"
)Details- Type
- array

array
$_currentTimestamps= 'array(
"CURRENT_TIMESTAMP"
)'
An array of DB constants/functions that represent timestamp values.
Default value
array(
"CURRENT_TIMESTAMP"
)Details- Type
- array

array
$dbtypes= 'array ()'
inheritedDescribes the physical database types.Inherited from:
\xPDODriver::$$dbtypes
Default value
array ()Details- Type
- array
- Inherited_from
- \xPDODriver::$$dbtypes

\xPDO
$xpdo= 'null'
inheritedA reference to the XPDO instance using this manager.Inherited from:
\xPDODriver::$$xpdo
Default value
nullDetails- Type
- \xPDO
- Access
- public
- Inherited_from
- \xPDODriver::$$xpdo
Methods

__construct(
\xPDO $xpdo
)
:
voidGet a sqlite xPDODriver instance.
Parameters
| Name | Type | Description |
|---|---|---|
| $xpdo | \xPDO | &$xpdo A reference to a specific xPDO instance. |

getPhpType(
string $dbtype
)
:
string
inherited
Gets the PHP field type based upon the specified database type.
Inherited from: \xPDODriver::getPhpType()
Parameters
Returns
Details
| Name | Type | Description |
|---|---|---|
| $dbtype | string | The database field type to convert. |
| Type | Description |
|---|---|
| string | The associated PHP type |
- Access
- public