Class FOFDatabaseDriverPdomysql
MySQL database driver supporting PDO based connections
- FOFDatabase
- FOFDatabaseDriver implements FOFDatabaseInterface
- FOFDatabaseDriverPdo
- FOFDatabaseDriverPdomysql
Copyright: Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved.
License: General Public License version 2 or later; see LICENSE.txt This file is adapted from the Joomla! Platform. It is used to iterate a database cursor returning FOFTable objects instead of plain stdClass objects
Since: 3.4
See: http://php.net/manual/en/ref.pdo-mysql.php
Located at fof/database/driver/pdomysql.php
Methods summary
public
|
|
public
|
|
public static
boolean
|
|
public
|
|
public
boolean
|
|
public
mixed
|
#
getCollation( )
Method to get the database collation in use by sampling a text field of a table in the database. |
public
string
|
#
getConnectionCollation( )
Method to get the database connection collation, as reported by the driver. If the connector doesn't support reporting this value please return an empty string. |
public
array
|
|
public
array
|
#
getTableColumns( string $table, boolean $typeOnly = true )
Retrieves field information about a given table. |
public
array
|
|
public
array
|
|
public
string
|
|
public
|
|
public
|
#
renameTable( string $oldTable, string $newTable, string $backup = null, string $prefix = null )
Renames a table in the database. |
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
Methods inherited from FOFDatabaseDriverPdo
__destruct()
,
__sleep()
,
__wakeup()
,
connected()
,
disconnect()
,
execute()
,
fetchArray()
,
fetchAssoc()
,
fetchObject()
,
freeResult()
,
getAffectedRows()
,
getConnectedQuery()
,
getErrorMessage()
,
getErrorNumber()
,
getNumRows()
,
getOption()
,
insertid()
,
loadNextAssoc()
,
loadNextObject()
,
loadNextRow()
,
setOption()
,
setQuery()
,
setUtf()
Methods inherited from FOFDatabaseDriver
__call()
,
addDisconnectHandler()
,
alterDbCharacterSet()
,
alterTableCharacterSet()
,
convertUtf8mb4QueryToUtf8()
,
createDatabase()
,
getAlterDbCharacterSet()
,
getAlterTableCharacterSet()
,
getCallStacks()
,
getConnection()
,
getConnectors()
,
getCount()
,
getCreateDatabaseQuery()
,
getDatabase()
,
getDateFormat()
,
getExporter()
,
getImporter()
,
getInstance()
,
getIterator()
,
getLog()
,
getMinimum()
,
getName()
,
getNullDate()
,
getPrefix()
,
getQuery()
,
getServerType()
,
getTimings()
,
getUTFSupport()
,
hasUTF8mb4Support()
,
hasUTFSupport()
,
insertObject()
,
isMinimumVersion()
,
loadAssoc()
,
loadAssocList()
,
loadColumn()
,
loadObject()
,
loadObjectList()
,
loadResult()
,
loadRow()
,
loadRowList()
,
quote()
,
quoteName()
,
quoteNameStr()
,
replacePrefix()
,
setDebug()
,
splitSql()
,
truncateTable()
,
updateObject()
Methods inherited from FOFDatabase
getErrorMsg()
,
getErrorNum()
,
query()
,
stderr()
,
test()
Magic methods summary
Magic methods inherited from FOFDatabaseDriver
Properties summary
public
string
|
$name |
#
The name of the database driver. |
public
string
|
$serverType |
#
The type of the database server family supported by this driver. |
protected
string
|
$nameQuote |
#
The character(s) used to quote SQL statement names such as table names or field names, etc. The child classes should define this as necessary. If a single character string the same character is used for both sides of the quoted name, else the first character will be used for the opening quote and the second for the closing quote. |
protected
string
|
$nullDate |
#
The null or zero representation of a timestamp for the database driver. This should be defined in child classes to hold the appropriate value for the engine. |
protected static
string
|
$dbMinimum |
#
The minimum supported database version. |
Properties inherited from FOFDatabaseDriverPdo
$connection
,
$executed
,
$prepared
Properties inherited from FOFDatabaseDriver
$callStacks
,
$count
,
$cursor
,
$debug
,
$disconnectHandlers
,
$errorMsg
,
$errorNum
,
$instances
,
$limit
,
$log
,
$offset
,
$options
,
$sql
,
$tablePrefix
,
$timings
,
$transactionDepth
,
$utf
,
$utf8mb4