00001 <?php 00010 class ConfigPetition 00011 { 00012 var $isModule; 00013 var $isGroup; 00014 var $isUser; 00015 var $idM; 00016 var $idG; 00017 var $idU; 00018 00022 function ConfigPetition() 00023 { 00024 $this->isModule = false; 00025 $this->isGroup = false; 00026 $this->isUser = false; 00027 } 00028 00033 function SetUser($idU) 00034 { 00035 $this->isUser = true; 00036 $this->idU = $idU; 00037 } 00038 00043 function SetGroup($idG) 00044 { 00045 $this->isGroup = true; 00046 $this->idG = $idG; 00047 } 00048 00053 function SetModule($idM) 00054 { 00055 $this->isModule = true; 00056 $this->idM = $idM; 00057 } 00058 00063 function GetUser() 00064 { 00065 if ($this->isUser) 00066 return $this->idU; 00067 else 00068 return null; 00069 } 00070 00075 function GetGroup() 00076 { 00077 if ($this->isGroup) 00078 return $this->idG; 00079 else 00080 return null; 00081 } 00082 00087 function GetModule() 00088 { 00089 if ($this->isModule) 00090 return $this->idM; 00091 else 00092 return null; 00093 } 00094 } 00095 00096 ?>