core/xpdo/om/mysql/xpdodriver.class.php

Show: inherited
Table of Contents

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

Propertypublicarray  $_currentDates= 'array ( 'CURDATE()', 'CURRENT_DATE', 'CURRENT_DATE()' )'

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

Default valuearray ( 'CURDATE()', 'CURRENT_DATE', 'CURRENT_DATE()' )Details
Type
array
Propertypublicarray  $_currentTimes= 'array ( 'CURTIME()', 'CURRENT_TIME', 'CURRENT_TIME()' )'

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

Default valuearray ( 'CURTIME()', 'CURRENT_TIME', 'CURRENT_TIME()' )Details
Type
array
Propertypublicarray  $_currentTimestamps= 'array ( 'CURRENT_TIMESTAMP', 'CURRENT_TIMESTAMP()', 'NOW()', 'LOCALTIME', 'LOCALTIME()', 'LOCALTIMESTAMP', 'LOCALTIMESTAMP()', 'SYSDATE()' )'

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

Default valuearray ( 'CURRENT_TIMESTAMP', 'CURRENT_TIMESTAMP()', 'NOW()', 'LOCALTIME', 'LOCALTIME()', 'LOCALTIMESTAMP', 'LOCALTIMESTAMP()', 'SYSDATE()' )Details
Type
array
Propertypublicarray  $dbtypes= 'array ()'
inherited

Describes the physical database types.Inherited from: \xPDODriver::$$dbtypes
Default valuearray ()Details
Type
array
Inherited_from
\xPDODriver::$$dbtypes  
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'
inherited

A reference to the XPDO instance using this manager.Inherited from: \xPDODriver::$$xpdo
Default valuenullDetails
Type
\xPDO
Access
public  
Inherited_from
\xPDODriver::$$xpdo  

Methods

methodpublic__construct( \xPDO $xpdo ) : void

Get a mysql xPDODriver instance.

Parameters
Name Type Description
$xpdo \xPDO

&$xpdo A reference to a specific xPDO instance.

methodpublicgetPhpType( string $dbtype ) : string
inherited

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

Inherited from: \xPDODriver::getPhpType()
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.