Class: GroupRight

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

Class GroupRight

Class Overview

Represents a Right for one Item and Group.

Located in /CORE/system/classes/right/GroupRight.php [line 35]



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

Methods

[ Top ]
Method Summary
GroupRight   GroupRight()   Load a Item right for a Group.
boolean   canDelete()   Checks if the Group can delete the given Item.
boolean   canRead()   Checks if the Group can read the given Item.
boolean   canWrite()   Checks if the Group can write the given Item.
int   getGroupID()   Gets the Group ID this Right represents.
int   getItemID()   Gets the Item ID this Right represents.
void   getValue()   Get the right value.

[ Top ]
Methods
Constructor GroupRight  [line 49]

  GroupRight GroupRight( int $itemtype, int $group_id, int $itemid  )

Load a Item right for a Group.

Parameters:
int   $itemtype:  the Itemtype ID
int   $group_id:  the Group ID
int   $itemid:  the Item ID


[ Top ]
canDelete  [line 106]

  boolean canDelete( )

Checks if the Group can delete the given Item.


API Tags:
Return:  if or if not group is allowed to delete the item


[ Top ]
canRead  [line 88]

  boolean canRead( )

Checks if the Group can read the given Item.


API Tags:
Return:  if or if not group is allowed to read the item


[ Top ]
canWrite  [line 97]

  boolean canWrite( )

Checks if the Group can write the given Item.


API Tags:
Return:  if or if not group is allowed to write the item


[ Top ]
getGroupID  [line 80]

  int getGroupID( )

Gets the Group ID this Right represents.


API Tags:
Return:  the Group ID


[ Top ]
getItemID  [line 72]

  int getItemID( )

Gets the Item ID this Right represents.


API Tags:
Return:  the Item ID


[ Top ]
getValue  [line 128]

  void getValue( )

Get the right value.



[ Top ]