Element index for package Databases
c
d
f
g
n
p
q
r
s
_
top
_
- __construct
- in file database.php, method database::__construct()
This is the two argument constructor for the database connection object. This will create the database connection if possible or if it fails it will set the 'connected' flag to false indicating that we aren't connected to the database.
top
c
- commit
- in file database.php, method database::commit()
This function is used in order to commit all of the queries which were executed on the database to the database.
top
d
- database
- in file database.php, class database
Database class for all database queries
- database.php
- procedural page database.php
top
f
- freeResults
- in file database.php, method database::freeResults()
This function is used in order to free the results from the query that is passed in as the argument.
top
g
- getArray
- in file database.php, method database::getArray()
This function is used in order to retrieve an associative array from the database statement.
- getBoth
- in file database.php, method database::getBoth()
This function is used in order to retrieve both the associative array and the indexed array from the database statement.
- getDatabaseConnection
- in file database.php, method database::getDatabaseConnection()
This function is used in order to retrieve the actual database connection that was created on instantiation of the object.
- getLogging
- in file database.php, method database::getLogging()
This function is used in order to determine if we are keeping logs of all of the queries that occur.
- getNumber
- in file database.php, method database::getNumber()
This function is used in order to retrieve an indexed array from the database statement.
- getTotalTime
- in file database.php, method database::getTotalTime()
This function is used in order to retrieve the total amount of time it took to execute all of the queries on the database.
top
n
- numRows
- in file database.php, method database::numRows()
This function is used in order to return the number of rows for a given query.
top
p
- printLog
- in file database.php, method database::printLog()
This function is used in order to display the log in a more useful manner.
top
q
- query
- in file database.php, method database::query()
This function is the starting function for the query that is being run.
top
r
- retrieveAllRows
- in file database.php, method database::retrieveAllRows()
This function is used in order to retrieve all of the rows which were obtained by the database query.
- retrieveErrorMessage
- in file database.php, method database::retrieveErrorMessage()
This function is used in order to retrieve the error that was with a corresponding query (i.e. invalid SQL).
- retrieveLog
- in file database.php, method database::retrieveLog()
This function is used in order to retrieve the raw version of the log (the array that actually holds the log).
- retrieveNumberOfQueries
- in file database.php, method database::retrieveNumberOfQueries()
This function is used in order to retrieve the number of queries which were executed on the database.
- rollback
- in file database.php, method database::rollback()
This function is used in order to rollback any queries which were executed on the database.
top
s
- setLogging
- in file database.php, method database::setLogging()
<em> This function is used in order to turn on/off the query logging functionality.
- setVerbose
- in file database.php, method database::setVerbose()
This function is used in order to set whether or not verbose mode is on or off.
- startTransaction
- in file database.php, method database::startTransaction()
This function is used in order to start a transaction so that the set of queries can be rolled back or committed at any time.