(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 pjaol 1.4 
14 pjaol 1.1   function __construct () {
15 pjaol 1.3     $this->$conf = Conf::instance();
16 pjaol 1.1     $this->getDBH();
17               $this->$dbh = new db_handle();
18             }
19 pjaol 1.4 
20 pjaol 1.1   function dbExec ($sql) {
21               return $this->$dbh->sel($sql);
22             }
23 pjaol 1.4 
24 pjaol 1.2   function dbSel ($sql) {
25               return $this->$dbh->sel($sql);
26             }
27           
28             function dbIns ($sql) {
29               return $this->$dbh->ins($sql);
30             }
31 pjaol 1.1 }
32           
33           ?>

cvsadmin
Powered by
ViewCVS 0.9.2