Class: Right

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

Class Right

Class Overview

This checks the possible Rights of the given User.

If checks all Group Memberships and their rights.

If you want to know if a special group has own rights on a special item use

.

Located in /CORE/system/classes/right/Right.php [line 38]



		
				Author(s):
		
  • Kevin Papst
Information Tags:
Version:  $Id: Right.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
Right   Right()   One instance is used for the given User and Item!
boolean   canDelete()   Checks if the User is allowed/has the rights to delete the given Page
boolean   canRead()   Checks if the User is allowed/has the rights to read the given Page.
boolean   canWrite()   Checks if the User is allowed/has the rights to write the given Page
void   getValue()   Returns the Right value for this request.

[ Top ]
Methods
Constructor Right  [line 60]

  Right Right( int $itemtype, int $userid, int $itemid  )

One instance is used for the given User and Item!

Parameters:
int   $itemtype:  itemtype the Itemtype to check the right for
int   $userid:  userid the User ID to work with
int   $itemid:  the Item ID to work with


[ Top ]
canDelete  [line 127]

  boolean canDelete( )

Checks if the User is allowed/has the rights to delete the given Page


API Tags:
Return:  if or if not user is allowed to delete the page


[ Top ]
canRead  [line 111]

  boolean canRead( )

Checks if the User is allowed/has the rights to read the given Page.


API Tags:
Return:  if or if not user is allowed to read the page


[ Top ]
canWrite  [line 119]

  boolean canWrite( )

Checks if the User is allowed/has the rights to write the given Page


API Tags:
Return:  if or if not user is allowed to write the page


[ Top ]
getValue  [line 165]

  void getValue( )

Returns the Right value for this request.

Valid values are:

  • _BIGACE_RIGHTS_NO
  • _BIGACE_RIGHTS_READ
  • _BIGACE_RIGHTS_WRITE
  • _BIGACE_RIGHTS_DELETE



[ Top ]