Class FOFDatabaseDriverPdo
Joomla Platform PDO Database Driver Class
- FOFDatabase
- FOFDatabaseDriver implements FOFDatabaseInterface
- FOFDatabaseDriverPdo
Direct known subclasses
FOFDatabaseDriverOracle
,
FOFDatabaseDriverPdomysql
,
FOFDatabaseDriverSqlite
Package: FrameworkOnFramework\database
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: 12.1
See: http://php.net/pdo
Located at fof/database/driver/pdo.php
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
mixed
|
|
public
mixed
|
#
getOption( mixed $key )
Retrieve a PDO database connection attribute http://www.php.net/manual/en/pdo.getattribute.php |
public
string
|
|
public
boolean
|
#
setOption( integer $key, mixed $value )
Sets an attribute on the PDO database handle. http://www.php.net/manual/en/pdo.setattribute.php |
public static
boolean
|
#
isSupported( )
Test to see if the PDO extension is available. Override as needed to check for specific PDO Drivers. |
public
boolean
|
|
public
integer
|
#
getAffectedRows( )
Get the number of affected rows for the previous executed SQL statement. Only applicable for DELETE, INSERT, or UPDATE statements. |
public
integer
|
#
getNumRows( resource $cursor = null )
Get the number of returned rows for the previous executed SQL statement. Only applicable for DELETE, INSERT, or UPDATE statements. |
public
string
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
protected
mixed
|
|
protected
mixed
|
#
fetchAssoc( mixed $cursor = null )
Method to fetch a row from the result set cursor as an associative array. |
protected
mixed
|
#
fetchObject( mixed $cursor = null, string $class = 'stdClass' )
Method to fetch a row from the result set cursor as an object. |
protected
|
|
public
mixed
|
#
loadNextObject( string $class = 'stdClass' )
Method to get the next row in the result set from the database query as an object. |
public
mixed
|
#
loadNextAssoc( )
Method to get the next row in the result set from the database query as an array. |
public
mixed
|
|
public
array
|
|
public
array
|
|
protected
integer
|
|
protected
string
|
Methods inherited from FOFDatabaseDriver
__call()
,
addDisconnectHandler()
,
alterDbCharacterSet()
,
alterTableCharacterSet()
,
convertUtf8mb4QueryToUtf8()
,
createDatabase()
,
dropTable()
,
getAlterDbCharacterSet()
,
getAlterTableCharacterSet()
,
getCallStacks()
,
getCollation()
,
getConnection()
,
getConnectionCollation()
,
getConnectors()
,
getCount()
,
getCreateDatabaseQuery()
,
getDatabase()
,
getDateFormat()
,
getExporter()
,
getImporter()
,
getInstance()
,
getIterator()
,
getLog()
,
getMinimum()
,
getName()
,
getNullDate()
,
getPrefix()
,
getQuery()
,
getServerType()
,
getTableColumns()
,
getTableCreate()
,
getTableKeys()
,
getTableList()
,
getTimings()
,
getUTFSupport()
,
getVersion()
,
hasUTF8mb4Support()
,
hasUTFSupport()
,
insertObject()
,
isMinimumVersion()
,
loadAssoc()
,
loadAssocList()
,
loadColumn()
,
loadObject()
,
loadObjectList()
,
loadResult()
,
loadRow()
,
loadRowList()
,
lockTable()
,
quote()
,
quoteName()
,
quoteNameStr()
,
renameTable()
,
replacePrefix()
,
setDebug()
,
splitSql()
,
truncateTable()
,
unlockTables()
,
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. |
protected
|
$connection |
#
The database connection resource. |
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
resource
|
$prepared |
#
The prepared statement. |
protected
array
|
$executed |
#
Contains the current query execution status |
Properties inherited from FOFDatabaseDriver
$callStacks
,
$count
,
$cursor
,
$dbMinimum
,
$debug
,
$disconnectHandlers
,
$errorMsg
,
$errorNum
,
$instances
,
$limit
,
$log
,
$offset
,
$options
,
$serverType
,
$sql
,
$tablePrefix
,
$timings
,
$transactionDepth
,
$utf
,
$utf8mb4