Method |
Description |
|
buildGroupTree ( string $cabin, integer $contextId, array $actions = [], integer $parentId, array $inherited = [], integer $depth ) : array |
Build a hierarchical tree containing all of the groups' permissions |
|
buildMultiContextGroupTree ( string $cabin, array $contexts = [], array $actions = [] ) : array |
Build a multi-context tree; make sure to && the permissions together |
|
buildMultiContextUserList ( string $cabin, array $contexts = [], array $actions = [] ) : array |
Build a multi-context tree; make sure to && the permissions together |
|
buildUserList ( string $cabin, integer $contextId, array $actions = [] ) : array |
Build a heirarchal tree containing all of the groups' permissions |
|
createAction ( string $cabin, string $label ) : boolean |
Create a new database action for a specific Cabin. |
|
createContext ( string $cabin, string $locator ) : boolean |
Create a new context for a specific cabin. |
|
getAction ( string $cabin, integer $actionId ) : array |
Get information about an action. |
|
getActionNames ( string $cabin ) : array |
Get all action labels for a particular cabin. |
|
getActions ( string $cabin ) : array |
List all actions for a cabin. |
|
getContext ( integer $contextId, string $cabin = CABIN_NAME ) : array |
Get all contexts for a cabin |
|
getContextIds ( string $uri = '', string $cabin = CABIN_NAME ) : array |
Returns an array with overlapping context IDs -- useful for when
contexts are used with regular expressions |
|
getContexts ( string $cabin = CABIN_NAME ) : array |
Get all contexts for a cabin |
|
getContextsForURI ( string $uri = '', string $cabin = CABIN_NAME ) : array |
Returns an array with overlapping context IDs -- useful for when
contexts are used with regular expressions |
|
getGroupPerms ( integer $groupId, integer $contextId ) : array |
|
|
getUserPerms ( integer $userId, integer $contextId ) : array |
|
|
saveAction ( string $cabin, integer $actionId, array $post = [] ) : boolean |
Update the label for a given action. |
|
saveContext ( string $cabin, integer $contextId, array $post ) : boolean |
Saves a permission context. This affects the context itself as well as
the whitelist. |
|