Example #1
0
 /**
  * @brief 构造函数
  * @param string $name 表名
  */
 public function __construct($name)
 {
     //$this->tablePre = isset(IWeb::$app->config['DB']['tablePre'])?IWeb::$app->config['DB']['tablePre']:'';
     $this->table = $name;
     $this->db = DbFactory::getInstance();
 }
Example #2
0
File: M.php Project: weipinglee/nn2
 public function __construct($tableName)
 {
     $this->db = DbFactory::getInstance();
     $this->tableName = $this->tablePre . $tableName;
 }