\APIDatabase

Abstract base class for Database access classes

Summary

Methods
Properties
Constants
__construct()
setLogger()
setPrefix()
prefix()
$prefix
$logger
$allowWebChanges
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$prefix

$prefix : 

Prefix for tables in the database

Type

$logger

$logger : 

reference to a {@link APILogger} object

Type

— APILogger

$allowWebChanges

$allowWebChanges : 

If statements that modify the database are selected

Type

Methods

__construct()

__construct() : 

APIDatabase constructor.

Returns

setLogger()

setLogger(\APILogger  logger) : 

assign a {@link APILogger} object to the database

Parameters

\APILogger logger

reference to a {@link APILogger} object

Returns

setPrefix()

setPrefix(  value) : 

set the prefix for tables in the database

Parameters

value

table prefix

Returns

prefix()

prefix(  tablename) : 

attach the prefix.'_' to a given tablename

if tablename is empty, only prefix will be returned

Parameters

tablename

tablename

Returns

prefixed tablename, just prefix if tablename is empty