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']); }
public function __construct($dbw, $dbr, $table) { $this->dbW = Blue_DB::instance($dbw); $this->dbR = Blue_DB::instance($dbr); $this->table = $table; }
/** * 载入数据库事务DB对象 */ private function load() { foreach ($this->transDB as $db) { $this->dbins[$db] = Blue_DB::instance($db); } }