Static Public Member Functions |
static | removeEntry ($entryId) |
| Usuwa konkretny wpis z tablicy uprawnieĊ
|
static | removeItemsEntries ($itemId) |
static | addEntry ($itemId, $groupId, $allow, $deny=0, $flags=0, $applyTo= '', $priority=-1, $accessId=0) |
static | setEntry ($accessId, $groupId, $allow, $deny, $flags, $applyTo, $priority) |
static | getItemEntries ($itemId) |
| Returns a list of access definitions for selected itemId.
|
static | getAccessTable (array $tree, array $groups, array $apply) |
| Returns access information for specified item tree, group list and apply.
|
static | getItemAccessTable ($item, $apply=false, $children=false, $userId=null) |
| Returns access information for specified item.
|
static | getAccessRights ($accessTable) |
| Converts access table to rights bitmap.
|
static | checkAccess ($right, $accessTable) |
| Checks if all specified rights are granted in an access table.
|
Member Function Documentation
static KWebAccess::addEntry |
( |
$ |
itemId, |
|
|
$ |
groupId, |
|
|
$ |
allow, |
|
|
$ |
deny = 0 , |
|
|
$ |
flags = 0 , |
|
|
$ |
applyTo = '' , |
|
|
$ |
priority = -1 , |
|
|
$ |
accessId = 0 |
|
) |
| [static] |
static KWebAccess::checkAccess |
( |
$ |
right, |
|
|
$ |
accessTable |
|
) |
| [static] |
Checks if all specified rights are granted in an access table.
static KWebAccess::getAccessRights |
( |
$ |
accessTable | ) |
[static] |
Converts access table to rights bitmap.
static KWebAccess::getAccessTable |
( |
array $ |
tree, |
|
|
array $ |
groups, |
|
|
array $ |
apply |
|
) |
| [static] |
Returns access information for specified item tree, group list and apply.
- Parameters:
-
$tree | Array of item ids, from root to item being checked |
$groups | Array of group ids the user is in |
$apply | Array of apply variables |
- Returns:
- array (ACC_ALLOW, ACC_DENY)
static KWebAccess::getItemAccessTable |
( |
$ |
item, |
|
|
$ |
apply = false , |
|
|
$ |
children = false , |
|
|
$ |
userId = null |
|
) |
| [static] |
Returns access information for specified item.
This function allows to include theoretical children list.
- Warning:
- Use KWebItem::getAccessTable() to get full, cached access information
static KWebAccess::getItemEntries |
( |
$ |
itemId | ) |
[static] |
Returns a list of access definitions for selected itemId.
static KWebAccess::removeEntry |
( |
$ |
entryId | ) |
[static] |
Usuwa konkretny wpis z tablicy uprawnieĊ
- Returns:
- ERR_*
static KWebAccess::removeItemsEntries |
( |
$ |
itemId | ) |
[static] |
static KWebAccess::setEntry |
( |
$ |
accessId, |
|
|
$ |
groupId, |
|
|
$ |
allow, |
|
|
$ |
deny, |
|
|
$ |
flags, |
|
|
$ |
applyTo, |
|
|
$ |
priority |
|
) |
| [static] |
The documentation for this class was generated from the following file: