API - XOOPS 2.5.11 Beta 2
By monxoops.fr
XoopsDatabase Class Reference
Inheritance diagram for XoopsDatabase:

Public Member Functions

 __construct ()
 
 setLogger (XoopsLogger $logger)
 
 setPrefix ($value)
 
 prefix ($tablename='')
 
 isResultSet ($result)
 

Data Fields

 $prefix = ''
 
 $logger
 
 $allowWebChanges = false
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

XoopsDatabase constructor.

Reimplemented in ProtectorMySQLDatabase.

Member Function Documentation

◆ isResultSet()

isResultSet (   $result)
abstract

Test the passed result to determine if it is a valid result set

Parameters
mixed$resultvalue to test
Returns
bool true if $result is a database result set, otherwise false

Reimplemented in XoopsMySQLDatabase.

◆ prefix()

prefix (   $tablename = '')

attach the prefix.'_' to a given tablename

if tablename is empty, only prefix will be returned

Parameters
string$tablenametablename
Returns
string prefixed tablename, just prefix if tablename is empty
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLogger()

setLogger ( XoopsLogger  $logger)

assign a XoopsLogger object to the database

See also
XoopsLogger
Parameters
XoopsLogger$loggerreference to a XoopsLogger object

◆ setPrefix()

setPrefix (   $value)

set the prefix for tables in the database

Parameters
string$valuetable prefix
Here is the call graph for this function:

Field Documentation

◆ $allowWebChanges

$allowWebChanges = false

◆ $logger

$logger

◆ $prefix

$prefix = ''

The documentation for this class was generated from the following file: