public function __construct($strHostName, $strDatabaseName, $strUsername, $strPassword)
 {
     $this->strHostName = $strHostName;
     $this->strDatabaseName = $strDatabaseName;
     $this->strUsername = $strUsername;
     $this->strPassword = $strPassword;
     LoadDriver::AddDataConnection($this);
 }
 public static function InitDB($strDataBaseConnection)
 {
     if (!self::$blnDBConnected) {
         self::$blnDBConnected = true;
         $arrDBInfo = unserialize($strDataBaseConnection);
         $objDataConnection = new MySqlDataConnection($arrDBInfo['host'], $arrDBInfo['db_name'], $arrDBInfo['user'], $arrDBInfo['password']);
         $objDataConnection->Connect();
         LoadDriver::AddDataConnection($objDataConnection);
     }
 }