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

 1 pjaol 1.1 <?php
 2           include("lib/loader.inc");
 3           
 4           class users {
 5           
 6              private $conf;
 7              private $dbiw;
 8           
 9              function __construct () {
10                 $this->$conf = Conf::instance();
11                 $this->$dbiw = new dbiw();
12              }
13           
14              function getAllGroups () {
15                $sql = "select idGroups,groupName from Groups";
16                return $this->$dbiw->dbSel($sql);
17              }
18           
19              function insGroup ($group) {
20                $sql = "insert into Groups(groupName)
21           		values ('$group');";
22 pjaol 1.1      $this->$dbiw->dbIns($sql);
23              }   
24           
25           
26           }
27           
28           ?>

cvsadmin
Powered by
ViewCVS 0.9.2