示例#1
0
文件: Db.php 项目: uwitec/outbuying
 /**
  * 获得 Watt_Db 对象
  *
  * @return Watt_Db
  */
 public static function getDbx($con_name = "propel")
 {
     if (!self::$_dbx) {
         self::$_dbx = new Watt_Dbx($con_name);
     } else {
         self::$_dbx->reconnect($con_name);
     }
     return self::$_dbx;
 }