Exemplo n.º 1
0
 public function __construct()
 {
     if (Arch_Yaml::isExist('arch', 'id')) {
         $this->opt = Arch_Yaml::get('arch', 'id');
     } else {
         $this->opt = Core_Conf::getConf('arch:id');
     }
     $this->db = Blue_DB::instance($this->opt['db']);
 }
Exemplo n.º 2
0
 public function __construct($dbw, $dbr, $table)
 {
     $this->dbW = Blue_DB::instance($dbw);
     $this->dbR = Blue_DB::instance($dbr);
     $this->table = $table;
 }
Exemplo n.º 3
0
 /**
  * 载入数据库事务DB对象
  */
 private function load()
 {
     foreach ($this->transDB as $db) {
         $this->dbins[$db] = Blue_DB::instance($db);
     }
 }