XOOPS
2.6.0
|
Static Public Member Functions | |
static | getConnection ($options=null) |
Definition at line 31 of file Factory.php.
|
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
Doctrine connection function
NOTE: Persistance connection is not included. XOOPS_DB_PCONNECT is ignored. allowWebChanges also needs to be addressed
array | $options | driverOptions for Doctrine |
Definition at line 51 of file Factory.php.
References Xoops\$config, $options, $xoops, XoopsBaseConfig\get(), and Xoops\getInstance().
Referenced by Xmf\Module\Helper\GenericHelper\_initHandler(), and Xmf\Module\Permission\init().