libraries/BFactory.php
public static function getDBO() {
		if (!empty(self::$db)) {
			return self::$db;
		}
		BLog::addToLog('[BFactory] Connecting to the database "' . MYSQL_DB_HOST . '"...');
		self::$db = BMySQL::getInstanceAndConnect();
		if (empty(self::$db)) {
			BLog::addToLog('[BFactory] Could not connect to the MySQL database!', LL_ERROR);
			return NULL;
		}
		return self::$db;
	}
public static function getDBO() {
		if (!empty(self::$db)) {
			return self::$db;
		}
		BLog::addToLog('[BFactory] Connecting to the database "' . MYSQL_DB_HOST . '"...');
		self::$db = BMySQL::getInstanceAndConnect();
		if (empty(self::$db)) {
			BLog::addToLog('[BFactory] Could not connect to the MySQL database!', LL_ERROR);
			return NULL;
		}
		return self::$db;
	}
public static function getDBO ( ) { if ( ! empty ( self :: $ db ) ) { return self :: $ db ; } BLog :: addToLog ( '[BFactory] Connecting to the database "' . MYSQL_DB_HOST . '"...' ) ; self :: $ db = BMySQL :: getInstanceAndConnect ( ) ; if ( empty ( self :: $ db ) ) { BLog :: addToLog ( '[BFactory] Could not connect to the MySQL database!' , LL_ERROR ) ; return NULL ; } return self :: $ db ; }
Get BMySQL instance

@return BMySQL|null
Get BMySQL instance