예제 #1
0
 function __construct($dbConfig = NULL, $tableName = "common_singleton")
 {
     if ($dbConfig == NULL) {
         $this->db = new Db(PhpLearnDbConfig());
     } else {
         $this->db = new Db($dbConfig);
     }
     $this->tableName = $tableName;
 }
예제 #2
0
파일: Dao.php 프로젝트: lionker/cpp_learn
 function __construct()
 {
     $this->db = new DbMysqli(PhpLearnDbConfig());
 }