<?php
//--Class umusergroup--------------------------
//--PK of umusergroup ::
//    1. UgGpID
//    2. UgUsID

class umusergroup extends clsDB{

var 
$result;

var 
$UgID;
var 
$UgGpID;
var 
$UgUsID;

function 
umusergroup(&$c){
    
$this->c=$c->c;
    
$this->DB=$c->db;
}

function 
RSumusergroup(){
    
$this->SetQuery("select * from umusergroup");
}

function 
GetRecord(){
    if (
$this->result $this->GetResult()) {
        
$this->UgID $this->result['UgID'];
        
$this->UgGpID $this->result['UgGpID'];
        
$this->UgUsID $this->result['UgUsID'];
        return 
1;
    }else {
        return 
0;
    }
}

function 
SearchByKey($xKey,$xKey2){
    if (
$this->SetQuery("select * from umusergroup where UgID= '$xKey' and UgUsID='$xKey2'")){ 
        return 
1;
    }else {
        return 
0;
    }
}

//****************** You can add new functions below **********************//


//--End class umusergroup--

?>