示例#1
0
 private function __construct($strDSN = "", $strUsername = "", $strPassword = "")
 {
     /* Private constructor to insure singleton behaviour */
     if (!empty($strDSN)) {
         self::$__dsn = $strDSN;
         self::$__dbUser = $strUsername;
         self::$__dbPassword = $strPassword;
     }
     $this->setDbConnection();
 }