Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules

Search

Donate to XOOPS!

Please select an amount to donate


Do you want your username revealed with your donation?
Yes - List me as a Generous Donor
No - List my donation as from an Anonymous Donor


Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

admin Arabic banner block Christmas comments cumulus DayDawn dhsoft e-Commerce E-Learning Git Google GUI hacks instant-zero jQuery module mygalleries news Nordic Olédrion oxygen PageRank PHP rmcommon security SEO simple-XOOPS Smarty sport tag Theme tutorial wiki xoops XoopsEngine ZendFramework

Top Tags

module (1) rmcommon (1)

New Users

Registering user

# 133030

cheapsalgcom

Welcome to XOOPS!
[Main Page]

Dev:GroupPermAdd

From XOOPS Web Application System

Main Page | Recent changes | Edit this page | Page history | Switch to MediaWiki mode

Printable version | Disclaimers | Privacy policy
Category: Development

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.

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

Retrieved from "http://xoops.org/modules/mediawiki/index.php/Dev:GroupPermAdd"

This page has been accessed 2,969 times. This page was last modified 02:07, 7 August 2011. Content is available under XOOPS Web Application System.