(file) Return to dbiw.inc CVS log (file) (dir) Up to [Development] / gantt_manager / src / lib / db

 1 pjaol 1.1 <?php
 2           
 3           class dbiw {
 4           
 5             private $dbh;
 6 pjaol 1.3   private $conf;
 7 pjaol 1.1 
 8             function getDBH () {
 9 pjaol 1.3     $db_conf = $this->$conf->get("db");
10 pjaol 1.1     $dbType = $db_conf["type"];
11 pjaol 1.3     include($dbType."_conn.inc");
12 pjaol 1.1     
13             }
14             function __construct () {
15 pjaol 1.3     $this->$conf = Conf::instance();
16 pjaol 1.1     $this->getDBH();
17               $this->$dbh = new db_handle();
18             }
19             function dbExec ($sql) {
20               return $this->$dbh->sel($sql);
21             }
22 pjaol 1.2   function dbSel ($sql) {
23               return $this->$dbh->sel($sql);
24             }
25           
26             function dbIns ($sql) {
27               return $this->$dbh->ins($sql);
28             }
29 pjaol 1.1 
30           
31           }
32           
33           ?>

cvsadmin
Powered by
ViewCVS 0.9.2