Class FOFDatabaseDriverMysql
MySQL database driver
- FOFDatabase
- FOFDatabaseDriver implements FOFDatabaseInterface
- FOFDatabaseDriverMysqli
- FOFDatabaseDriverMysql
Deprecated: Will be removed when the minimum supported PHP version no longer includes the deprecated PHP
mysql
extensionCopyright: 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://dev.mysql.com/doc/
Located at fof/database/driver/mysql.php
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public static
boolean
|
|
public
boolean
|
|
public
integer
|
#
getAffectedRows( )
Get the number of affected rows by the last INSERT, UPDATE, REPLACE or DELETE for the previous executed SQL statement. |
public
integer
|
#
getNumRows( resource $cursor = null )
Get the number of returned rows for the previous executed SQL statement. This command is only valid for statements like SELECT or SHOW that return an actual result set. To retrieve the number of rows affected by a INSERT, UPDATE, REPLACE or DELETE query, use getAffectedRows(). |
public
string
|
|
public
integer
|
|
public
mixed
|
|
public
boolean
|
|
public
boolean
|
|
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
|
|
protected
integer
|
|
protected
string
|
Methods inherited from FOFDatabaseDriverMysqli
dropTable()
,
getCollation()
,
getConnectionCollation()
,
getTableColumns()
,
getTableCreate()
,
getTableKeys()
,
getTableList()
,
lockTable()
,
renameTable()
,
transactionCommit()
,
transactionRollback()
,
transactionStart()
,
unlockTables()
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()
,
loadNextObject()
,
loadNextRow()
,
loadObject()
,
loadObjectList()
,
loadResult()
,
loadRow()
,
loadRowList()
,
quote()
,
quoteName()
,
quoteNameStr()
,
replacePrefix()
,
setDebug()
,
setQuery()
,
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. |
Properties inherited from FOFDatabaseDriverMysqli
$connection
,
$dbMinimum
,
$nameQuote
,
$nullDate
,
$serverType
Properties inherited from FOFDatabaseDriver
$callStacks
,
$count
,
$cursor
,
$debug
,
$disconnectHandlers
,
$errorMsg
,
$errorNum
,
$instances
,
$limit
,
$log
,
$offset
,
$options
,
$sql
,
$tablePrefix
,
$timings
,
$transactionDepth
,
$utf
,
$utf8mb4