abstract |
---|
Abstract base class for Database access classes
Methods | ||||
---|---|---|---|---|
public
|
__construct()
XoopsDatabase constructor.
|
# | ||
public
|
setLogger(XoopsLogger $logger)
assign a {@link XoopsLogger} object to the database
assign a {@link XoopsLogger} object to the database Parameters
|
# | ||
public
|
setPrefix(string $value)
set the prefix for tables in the database
set the prefix for tables in the database Parameters
|
# | ||
public
|
prefix(string $tablename = ''): string
attach the prefix.'_' to a given tablename
attach the prefix.'_' to a given tablename if tablename is empty, only prefix will be returned Parameters
Returnsprefixed tablename, just prefix if tablename is empty |
# | ||
abstract
public
|
isResultSet(mixed $result): bool
Test the passed result to determine if it is a valid result set
Test the passed result to determine if it is a valid result set Parameters
Returnstrue if $result is a database result set, otherwise false Implemented by |
# |
Properties | |||
---|---|---|---|
public
|
string
|
$prefix = ''
|
# |
public
|
object
|
$logger
XoopsLogger
XoopsLogger |
# |
public
|
boolean
|
$allowWebChanges = false
|
# |