XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
XoopsDatabase Class Reference
Inheritance diagram for XoopsDatabase:
Inheritance graph

Public Member Functions

 prefix ($tablename= '')
 
 setLogger (&$logger)
 
 setPrefix ($value)
 
 XoopsDatabase ()
 

Public Attributes

 $allowWebChanges = false
 
 $logger
 
 $prefix = ''
 

Detailed Description

Definition at line 40 of file database.php.

Member Function Documentation

XoopsDatabase::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

Definition at line 104 of file database.php.

References $prefix.

Referenced by setPrefix().

Here is the caller graph for this function:

XoopsDatabase::setLogger ( $logger)

assign a XoopsLogger object to the database

See Also
XoopsLogger
Parameters
object$loggerreference to a XoopsLogger object

Definition at line 81 of file database.php.

References $logger.

XoopsDatabase::setPrefix (   $value)

set the prefix for tables in the database

Parameters
string$valuetable prefix

Definition at line 91 of file database.php.

References prefix().

Here is the call graph for this function:

XoopsDatabase::XoopsDatabase ( )

constructor

will always fail, because this is an abstract class!

Definition at line 69 of file database.php.

Member Data Documentation

XoopsDatabase::$allowWebChanges = false

Definition at line 62 of file database.php.

XoopsDatabase::$logger

Definition at line 55 of file database.php.

Referenced by setLogger().

XoopsDatabase::$prefix = ''

Definition at line 47 of file database.php.

Referenced by prefix().


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