65 if (!class_exists(
'XoopsGroupPermHandler',
true)) {
68 $this->mid = $this->
module->getVar(
'mid');
69 $this->dirname = $this->
module->getVar(
'dirname');
71 $this->perm = new \XoopsGroupPermHandler($this->db);
72 if (class_exists(
'Xoops',
false)) {
87 $gperm_groupid = $this->xoops->getUserGroups();
89 return $this->perm->checkRight(
115 $gperm_groupid = $this->xoops->getUserGroups();
116 $permission = $this->perm->checkRight(
138 return $this->perm->getGroupIds($gperm_name, $gperm_itemid, $this->mid);
159 foreach (
$groups as $group_id) {
160 $this->perm->addRight(
182 return $this->perm->deleteByModule($this->mid, $gperm_name, $gperm_itemid);
205 $include_anon =
false,
213 $element = new \Xoops\Form\SelectGroup(
238 $gperm_name .
'_' . $gperm_itemid;
static getHelper($dirname= 'system')
getGroupsForItem($gperm_name, $gperm_itemid)
static loadFile($file, $once=true)
defaultFieldName($gperm_name, $gperm_itemid)
checkPermissionRedirect($gperm_name, $gperm_itemid, $url, $time=3, $message= '')
savePermissionForItem($gperm_name, $gperm_itemid, $groups)
checkPermission($gperm_name, $gperm_itemid)
static getConnection($options=null)
deletePermissionForItem($gperm_name, $gperm_itemid)
getGroupSelectFormForItem($gperm_name, $gperm_itemid, $caption, $name=null, $include_anon=false, $size=5, $multiple=true)