Class RightService

Description

Holds methods for receiving Item Rights, User dependend Rights and the RightAdminService.

  • version: $Id: RightService.php,v 1.8 2006/11/26 22:04:08 kpapst Exp $
  • copyright: Copyright (C) 2002-2006 Kevin Papst
  • author: Kevin Papst
  • license: GNU Public License


			
Method Summary
GroupRight getGroupRight ( $itemtype,  $itemID,  $groupID)
Right getItemRight ( $itemtype,  $itemID,  $user_id)
ItemRightEnumeration getItemRightEnumeration ( $item_type,  $item_id)
Object getMenuRight (int $userid, int $menuid)
Right getUserRight ( $itemtype,  $itemID,  $userID)
Methods
getGroupRight (line 62)

Gets the Right for one Group and Item.

  • return: the requested Right entry
GroupRight getGroupRight ( $itemtype,  $itemID,  $groupID)
  • $itemtype
  • $itemID
  • $groupID
getItemRight (line 46)

Fetches a right for a given User and Item.

  • return: the requested Right
Right getItemRight ( $itemtype,  $itemID,  $user_id)
  • $itemtype
  • $itemID
  • $user_id
getItemRightEnumeration (line 70)

Get all rights for the iven Item.

  • return: an enumeration of all Rights for one Item
ItemRightEnumeration getItemRightEnumeration ( $item_type,  $item_id)
  • $item_type
  • $item_id
getMenuRight (line 81)

Gets a single MenuRight that represents the given combination of User and Menu ID.

  • return: the MenuRight for the given combination
Object getMenuRight (int $userid, int $menuid)
  • int $userid: the User ID
  • int $menuid: the Menu ID
getUserRight (line 54)

Gets the right for one User and Item.

  • return: the requested Right
Right getUserRight ( $itemtype,  $itemID,  $userID)
  • $itemtype
  • $itemID
  • $userID

Documentation generated by phpDocumentor 1.3.1