[edit]
Introduction
One way to use the XOOPS group permissions are through the use of the GroupPermForm, but the GroupPerm and GroupPermHandler classes are not hard to use outside of the GroupPermForm.
[edit]
Important Methods (all on GroupPermHandler)
checkRight($gperm_name, $gperm_itemid, $gperm_groupid, $gperm_modid) - Checks if a group or an array of groups have rights to a certain permission name/category on a certain item in a certain module
addRight($gperm_name, $gperm_itemid, $gperm_groupid, $gperm_modid) - Add a permission with a certain name to a group with a certain id on a certain item in a certain module
getItemIds($gperm_name, $gperm_groupid, $gperm_modid) - returns the items which a certain group or an array of groups have a certain permission to in a certain module
Note: You CAN use userids instead of groupids, but you MUST then make sure that there are no groupids in that permission name/category for obvious reasons.
$gperm_name - is a string that is the name of the permission
$gperm_itemid - is the id of the item
$gperm_groupid - is the id of the group accessing the item
$gperm_modid - is the id of the module
Back to Main Page











![[Main Page]](/modules/mediawiki/images/mediawiki.png)


