User Login    
 + Register
  • Main navigation
Login
Username:

Password:


Lost Password?

Register now!
Who's Online
80 user(s) are online (5 user(s) are browsing XoopsWiki)

Members: 7
Guests: 73

Runeher, zeroram, ofvirkur, wishcraft, andrax, summary, mythmanq, more...
Documentation
Nominate XOOPS!!!!
[Main Page]

Dev:GroupPermAdd

From XOOPS Project

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.

Back to Main Page

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

This page has been accessed 460 times. This page was last modified 17:04, 15 December 2007. Content is available under XOOPS Project.


Powered by
XOOPS Code hosted on SourceForge

Powered by PHP



Powered by MySQL

Powered by Smarty

OSI certified

All content on this site is subject to the Creative Commons License
Local Support Sites