/**
* Class constructor
*/
final public function __construct()
{
// gets the config object from the main class
$config = CampSite::GetConfigInstance();
// sets the new connection resource
$this->m_db = ADONewConnection($config->getSetting('db.type'));
$this->m_db->SetFetchMode(ADODB_FETCH_ASSOC);
$this->m_db->Connect($config->getSetting('db.host'),
$config->getSetting('db.user'),
$config->getSetting('db.pass'),
$config->getSetting('db.name'));
} // fn __construct