AbstractDatabaseDriver
class AbstractDatabaseDriver implements DatabaseDriverInterface (View source)
Class DatabaseDriver
Methods
Constructor.
getConnection
setConnection
Execute the SQL statement.
connect
Disconnects the database.
Select a database for use.
Get the version of the database connector
Method to free up the memory used for the result set.
getDatabaseList
getCursor
getTable
getTable
getWriter
getWriter
getIterator
Gets the name of the database used by this conneciton.
Get the common table prefix for the database driver.
This function replaces a string identifier $prefix with the string held is the tablePrefix class variable.
Splits a string of multiple queries into an array of individual queries.
Sets the database debugging state for the driver.
Sets the SQL statement string for later execution.
loadAll
loadOne
loadResult
loadColumn
quoteName
qn
quote
q
escape
e
Method to get property Name
Method to get property Options
Method to set property options
Method to set property database
Method to get property Middlewares
Method to set property middlewares
Method to get property LastQuery
Details
at line line 167
__construct(null $connection = null, array $options = array())
Constructor.
at line line 189
resource|object
getConnection()
getConnection
at line line 201
AbstractDatabaseDriver
setConnection(resource $connection)
setConnection
at line line 216
resource|false
execute()
Execute the SQL statement.
at line line 253
abstract AbstractDatabaseDriver
connect()
connect
at line line 262
abstract AbstractDatabaseDriver
disconnect()
Disconnects the database.
at line line 284
abstract boolean
select(string $database)
Select a database for use.
at line line 293
abstract string
getVersion()
Get the version of the database connector
at line line 304
abstract AbstractDatabaseDriver
freeResult(mixed $cursor = null)
Method to free up the memory used for the result set.
at line line 311
abstract mixed
listDatabases()
getDatabaseList
at line line 318
resource
getCursor()
getCursor
at line line 333
Query
getQuery(boolean $new = false)
Get the current query object or a new Query object.
at line line 363
AbstractTable
getTable(string $name, bool $new = false)
getTable
at line line 383
AbstractDatabase
getDatabase(string $name = null, bool $new = false)
getTable
at line line 410
AbstractReader
getReader(Query $query = null, bool $new = true)
getReader
at line line 434
AbstractWriter
getWriter(bool $new = true)
getWriter
at line line 454
AbstractTransaction
getTransaction(boolean $nested = true, bool $new = false)
getWriter
at line line 473
DataIterator
getIterator(string $class = 'stdClass')
getIterator
at line line 485
string
getCurrentDatabase()
Gets the name of the database used by this conneciton.
at line line 497
string
getPrefix()
Get the common table prefix for the database driver.
at line line 513
string
replacePrefix(string $sql, string $prefix = '#__')
This function replaces a string identifier $prefix with the string held is the tablePrefix class variable.
at line line 613
static array
splitSql(string $sql)
Splits a string of multiple queries into an array of individual queries.
at line line 671
AbstractDatabaseDriver
setDebug(boolean $level)
Sets the database debugging state for the driver.
at line line 687
AbstractDatabaseDriver
setQuery(mixed $query)
Sets the SQL statement string for later execution.
at line line 702
mixed
loadAll(string $key = null, string $class = '\\stdClass')
loadAll
at line line 724
mixed
loadOne(string $class = '\\stdClass')
loadOne
at line line 744
mixed
loadResult()
loadResult
at line line 754
mixed
loadColumn()
loadColumn
at line line 781
mixed
quoteName(string $text)
quoteName
at line line 793
mixed
qn(string $text)
qn
at line line 806
string
quote(string $text, bool $escape = true)
quote
at line line 819
string
q(string $text, bool $escape = true)
q
at line line 832
string
escape(string $text, bool $extra = true)
escape
at line line 845
string
e(string $text, bool $extra = true)
e
at line line 855
string
getName()
Method to get property Name
at line line 865
array
getOptions()
Method to get property Options
at line line 877
AbstractDatabaseDriver
setOptions(array $options)
Method to set property options
at line line 891
AbstractDatabaseDriver
setDatabaseName(string $database)
Method to set property database
at line line 909
AbstractDatabaseDriver
addMiddleware(MiddlewareInterface|callable $middleware)
addMiddleware
at line line 923
ChainBuilder
getMiddlewares()
Method to get property Middlewares
at line line 935
AbstractDatabaseDriver
resetMiddlewares()
Method to set property middlewares
at line line 948
string
getLastQuery()
Method to get property LastQuery