/** * Loads and initiates the SQL driver that we need to use. * */ public function __construct() { if (!self::$_oObject) { $sDriver = 'phpfox.database.driver.mysqli'; self::$_oObject = Phpfox::getLib($sDriver); self::$_oObject->connect(Phpfox::getParam(array('db', 'host')), Phpfox::getParam(array('db', 'user')), Phpfox::getParam(array('db', 'pass')), Phpfox::getParam(array('db', 'name'))); } }