Class: RightService

Source Location: /CORE/system/classes/right/RightService.php

Class RightService

Class Overview

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

Located in /CORE/system/classes/right/RightService.php [line 39]



		
				Author(s):
		
  • Kevin Papst
Information Tags:
Version:  $Id: RightService.php,v 1.8 2006/11/26 22:04:08 kpapst Exp $
Copyright:  Copyright (C) 2002-2006 Kevin Papst
License:  GNU Public License

Methods

[ Top ]
Method Summary
GroupRight   getGroupRight()   Gets the Right for one Group and Item.
Right   getItemRight()   Fetches a right for a given User and Item.
ItemRightEnumeration   getItemRightEnumeration()   Get all rights for the iven Item.
Object   getMenuRight()   Gets a single MenuRight that represents the given combination of User and Menu ID.
Right   getUserRight()   Gets the right for one User and Item.

[ Top ]
Methods
getGroupRight  [line 62]

  GroupRight getGroupRight( $itemtype, $itemID, $groupID  )

Gets the Right for one Group and Item.

Parameters:
   $itemtype: 
   $itemID: 
   $groupID: 

API Tags:
Return:  the requested Right entry


[ Top ]
getItemRight  [line 46]

  Right getItemRight( $itemtype, $itemID, $user_id  )

Fetches a right for a given User and Item.

Parameters:
   $itemtype: 
   $itemID: 
   $user_id: 

API Tags:
Return:  the requested Right


[ Top ]
getItemRightEnumeration  [line 70]

  ItemRightEnumeration getItemRightEnumeration( $item_type, $item_id  )

Get all rights for the iven Item.

Parameters:
   $item_type: 
   $item_id: 

API Tags:
Return:  an enumeration of all Rights for one Item


[ Top ]
getMenuRight  [line 81]

  Object getMenuRight( int $userid, int $menuid  )

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

Parameters:
int   $userid:  the User ID
int   $menuid:  the Menu ID

API Tags:
Return:  the MenuRight for the given combination


[ Top ]
getUserRight  [line 54]

  Right getUserRight( $itemtype, $itemID, $userID  )

Gets the right for one User and Item.

Parameters:
   $itemtype: 
   $itemID: 
   $userID: 

API Tags:
Return:  the requested Right


[ Top ]