XOOPS  2.6.0
XoopsDatabaseFactory Class Reference
Inheritance diagram for XoopsDatabaseFactory:
Inheritance graph

Static Public Member Functions

static getDatabaseConnection ()
 
- Static Public Member Functions inherited from Xoops\Core\Database\Factory
static getConnection ($options=null)
 

Detailed Description

Definition at line 29 of file databasefactory.php.

Member Function Documentation

static XoopsDatabaseFactory::getDatabaseConnection ( )
static

Get a reference to the only instance of database class and connects to DB

if the class has not been instantiated yet, this will also take care of that

Legacy support function

NOTE: Persistance connection is not supported nor needed with Doctrine. XOOPS_DB_PCONNECT is ignored.

Returns
XoopsDatabase Reference to the only instance of database class

Definition at line 45 of file databasefactory.php.

References $file, XoopsBaseConfig\get(), and Xoops\Core\Events\getInstance().

Referenced by XoopsObjectHandler\__construct(), and XoopsPersistableObjectHandler\__construct().

Here is the call graph for this function:

Here is the caller graph for this function:


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