Class Right

Description

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

.

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


			
Method Summary
Right Right (int $itemtype, int $userid, int $itemid)
boolean canDelete ()
boolean canRead ()
boolean canWrite ()
void getValue ()
Methods
Constructor Right (line 60)

One instance is used for the given User and Item!

Right Right (int $itemtype, int $userid, int $itemid)
  • 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
canDelete (line 127)

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

  • return: if or if not user is allowed to delete the page
boolean canDelete ()
canRead (line 111)

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

  • return: if or if not user is allowed to read the page
boolean canRead ()
canWrite (line 119)

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

  • return: if or if not user is allowed to write the page
boolean canWrite ()
getValue (line 165)

Returns the Right value for this request.

Valid values are:

  • _BIGACE_RIGHTS_NO
  • _BIGACE_RIGHTS_READ
  • _BIGACE_RIGHTS_WRITE
  • _BIGACE_RIGHTS_DELETE

void getValue ()

Documentation generated by phpDocumentor 1.3.1