Exemplo n.º 1
0
 /**
  * 构建数据操作实例
  *
  * @param string $table
  * @param null $as
  * @param null $db_conf
  */
 public function __construct($table, $as = null, $db_conf = null)
 {
     $this->table_raw = $table;
     $this->config = FDB::getConfig();
     $this->table = $this->_table = "`{$this->config['table_pre']}{$table}`";
     if ($as) {
         $this->_table = $this->_table . " as {$as}";
     }
     if ($db_conf) {
         $this->db_conf = $db_conf;
     }
 }