Public Member Functions | |
__construct ($user="", $pass="", $db="", $server="", $port="3306") | |
Establish a database connection. | |
__destruct () | |
Called when the object is destroyed. | |
clearErrors () | |
Clear any errors that have been set on this object. | |
fieldName () | |
Get the field names from the result of the last query. | |
getDB () | |
Get the database object. | |
getDBName () | |
INSERT BRIEF DESCRIPTION HERE. | |
getError ($pos="") | |
Get a list of the errors set on this object, or a single error message. | |
getQuery () | |
Get the last query used. | |
getResult ($index="") | |
Get the (cached) results for a given query to the database. | |
hasError () | |
INSERT BRIEF DESCRIPTION HERE. | |
mysql_insert_id () | |
Get the last mysql_insert_id. | |
query ($query, $queryInfo=false) | |
Run a query on the database. | |
setError ($errorMessage) | |
Set (report) an error on this object. | |
setResult ($resultIndex, $resultIn) | |
Store (cache) the results for a given query to the database. |
DBI::__construct | ( | $ | user = "" , |
|
$ | pass = "" , |
|||
$ | db = "" , |
|||
$ | server = "" , |
|||
$ | port = "3306" | |||
) |
Establish a database connection.
$user | [string]: Database username | |
$pass | [string]: Database password | |
$db | [string]: Database name | |
$server | [string]: Database server name | |
$port | [int]: Database port number |
DBI::__destruct | ( | ) |
Called when the object is destroyed.
Prints out the total DBI time used if common.debugQueries is on
DBI::fieldName | ( | ) |
Get the field names from the result of the last query.
DBI::getDB | ( | ) |
Get the database object.
DBI::getDBName | ( | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
DBI::getError | ( | $ | pos = "" |
) |
Get a list of the errors set on this object, or a single error message.
$pos | [int]: Get the error message at index $pos |
DBI::getResult | ( | $ | index = "" |
) |
Get the (cached) results for a given query to the database.
$index | [string]: The index at which the results were cached -- normally use the query as the index. If no index is defined, return all stored results. |
DBI::hasError | ( | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
DBI::mysql_insert_id | ( | ) |
Get the last mysql_insert_id.
DBI::query | ( | $ | query, | |
$ | queryInfo = false | |||
) |
Run a query on the database.
$query | [string]: The SQL query to be run | |
$queryInfo | [bool]: Should the returned array have additional query info stored? (optional, false by default) |
DBI::setError | ( | $ | errorMessage | ) |
Set (report) an error on this object.
$errorMessage | [string]: The error to be set |
DBI::setResult | ( | $ | resultIndex, | |
$ | resultIn | |||
) |
Store (cache) the results for a given query to the database.
$resultIndex | [string]: The index at which we should cache the result (normally use the query as the index) | |
$resultIn | [array]: The result to be cached at this index |