RightAdminService RightAdminService(
int
$itemtype
)
|
|
This initalizes the AdminService with the correct Itemtype.
Parameters:
|
int |
$itemtype: |
itemtype the Itemtype to handle the rights for |
void changeRight(
$group_id,
$itemid,
$value
)
|
|
Parameters:
|
|
$group_id: |
|
|
|
$itemid: |
|
|
|
$value: |
|
boolean checkForExistence(
int
$group, int
$itemid
)
|
|
Checks if a Right exists for the given Group and Item ID.
Parameters:
|
int |
$group: |
the Group ID to check |
|
int |
$itemid: |
the ItemID to check |
API Tags:
| Return: | whether a Right exists or not |
void createGroupRight(
$group_id,
$itemid,
$value
)
|
|
Creates a Right entry for the given Group.
If there is already an enry for this group existing, this one will be changed.
Parameters:
|
|
$group_id: |
|
|
|
$itemid: |
|
|
|
$value: |
|
void createRightCopy(
long
$parent, long
$child
)
|
|
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!
Parameters:
|
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 |
Object deleteGroupRight(
int
$group_id, int
$itemid
)
|
|
Delete the special right entry that belong to the given Group and Item.
Parameters:
|
int |
$group_id: |
the Group ID |
|
int |
$itemid: |
the Item ID |
API Tags:
Object deleteItemRights(
int
$itemid
)
|
|
Delete all right entrys that belong to the given Item ID
Parameters:
API Tags: