Location: PHPKode > scripts > LQueryBU > LQueryBU/LQueryBU_DB.php
<?php
/*
* LQBU_DB Class
* Connect to LQUERY DB_INTERFACE 
*
* @package LQBU_DB
*/
class LQBU_DB 
{
	protected static $PDODB = array();
  
	/**
	* Connect to database or DB library
	*
	* @access	private Called by the constructor
	* @param	string (DB Group definition)
	* @return	void
	*/
	function connect($dbGroup) 
	{
		$LQBU_pathinfo = pathinfo(__FILE__);
		require $LQBU_pathinfo['dirname'].DIRECTORY_SEPARATOR."database.php";

		if (!isset($configLQBU[$dbGroup]['database']))
			throw new Exception('LQueryBU-001: No database definition found for group "'.$dbGroup.'"');

		self::$PDODB[$dbGroup] = new LQBU_DBC($configLQBU[$dbGroup]);
		self::$PDODB[$dbGroup]->exec('SET CHARACTER SET utf8');
  	}
}


Return current item: LQueryBU