Class RightAdminService

Description

The RightAdminService is used for creating and deleting Right entrys.

Initialize this Service with a Itemtype to work with.

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


			
Method Summary
RightAdminService RightAdminService (int $itemtype)
void changeRight ( $group_id,  $itemid,  $value)
boolean checkForExistence (int $group, int $itemid)
void createGroupRight ( $group_id,  $itemid,  $value)
void createRightCopy (long $parent, long $child)
Object deleteGroupRight (int $group_id, int $itemid)
Object deleteItemRights (int $itemid)
Methods
Constructor RightAdminService (line 47)

This initalizes the AdminService with the correct Itemtype.

RightAdminService RightAdminService (int $itemtype)
  • int $itemtype: itemtype the Itemtype to handle the rights for
changeRight (line 99)
void changeRight ( $group_id,  $itemid,  $value)
  • $group_id
  • $itemid
  • $value
checkForExistence (line 88)

Checks if a Right exists for the given Group and Item ID.

  • return: whether a Right exists or not
boolean checkForExistence (int $group, int $itemid)
  • int $group: the Group ID to check
  • int $itemid: the ItemID to check
createGroupRight (line 136)

Creates a Right entry for the given Group.

If there is already an enry for this group existing, this one will be changed.

void createGroupRight ( $group_id,  $itemid,  $value)
  • $group_id
  • $itemid
  • $value
createRightCopy (line 117)

Creates a right copy for all Right entrys by selecting all from the Parent and applying them to the Child.

The Parent must NOT be the real Item Parent of the Child!

void createRightCopy (long $parent, long $child)
  • long $parent: parent the Item ID of the Item to creates a righty copy from
  • long $child: child the ItemID of the Item to create the right entrys for
deleteGroupRight (line 72)

Delete the special right entry that belong to the given Group and Item.

  • return: the DB Result
Object deleteGroupRight (int $group_id, int $itemid)
  • int $group_id: the Group ID
  • int $itemid: the Item ID
deleteItemRights (line 57)

Delete all right entrys that belong to the given Item ID

  • return: the DB Result
Object deleteItemRights (int $itemid)
  • int $itemid: the Item ID

Documentation generated by phpDocumentor 1.3.1