core/xpdo/om/mysql/xpdodriver.class.php
The mysql implementation of the xPDODriver class.
- Package
- xpdo
- Subpackage
- om.mysql
\xPDODriver_mysql
Package: xpdo\om\mysql
Provides mysql 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 mysql.
- Parent(s)
- \xPDODriver
Properties
array
$_currentDates= 'array (
'CURDATE()',
'CURRENT_DATE',
'CURRENT_DATE()'
)'
An array of DB constants/functions that represent date values.
Default value
array (
'CURDATE()',
'CURRENT_DATE',
'CURRENT_DATE()'
)
Details- Type
- array
array
$_currentTimes= 'array (
'CURTIME()',
'CURRENT_TIME',
'CURRENT_TIME()'
)'
An array of DB constants/functions that represent time values.
Default value
array (
'CURTIME()',
'CURRENT_TIME',
'CURRENT_TIME()'
)
Details- Type
- array
array
$_currentTimestamps= 'array (
'CURRENT_TIMESTAMP',
'CURRENT_TIMESTAMP()',
'NOW()',
'LOCALTIME',
'LOCALTIME()',
'LOCALTIMESTAMP',
'LOCALTIMESTAMP()',
'SYSDATE()'
)'
An array of DB constants/functions that represent timestamp values.
Default value
array (
'CURRENT_TIMESTAMP',
'CURRENT_TIMESTAMP()',
'NOW()',
'LOCALTIME',
'LOCALTIME()',
'LOCALTIMESTAMP',
'LOCALTIMESTAMP()',
'SYSDATE()'
)
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
null
Details- Type
- \xPDO
- Access
- public
- Inherited_from
- \xPDODriver::$$xpdo
Methods
__construct(
\xPDO $xpdo
)
:
void
Get a mysql 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