$data
$data :
TODO
Instance of a single permissioning object.
Copyright 2009-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
__construct(string $name, integer $cacheVersion = null, string $type = 'matrix', array $params = null)
Constructor.
string | $name | The name of the perm. |
integer | $cacheVersion | The revision number of the class. |
string | $type | The permission type. |
array | $params | A hash with any parameters that the permission type needs. |
addGroupPermission(integer $groupId, integer $permission, boolean $update = true)
Grants a group additional permissions to this object.
integer | $groupId | The id of the group to grant additional permissions to. |
integer | $permission | The permission (DELETE, etc.) to add. |
boolean | $update | Whether to automatically update the backend. |
removeUserPermission(string $user = null, integer $permission = null, boolean $update = true)
Removes a permission that a user currently has on this object.
string | $user | The user to remove the permission from. Defaults to all users. |
integer | $permission | The permission (DELETE, etc.) to remove. Defaults to all permissions. |
boolean | $update | Whether to automatically update the backend. |
removeGuestPermission(integer $permission = null, boolean $update = true)
Removes a permission that guests currently have on this object.
integer | $permission | The permission (DELETE, etc.) to remove. Defaults to all permissions. |
boolean | $update | Whether to automatically update the backend. |
removeCreatorPermission(integer $permission = null, boolean $update = true)
Removes a permission that creators currently have on this object.
integer | $permission | The permission (DELETE, etc.) to remove. Defaults to all permissions. |
boolean | $update | Whether to automatically update the backend. |
removeDefaultPermission(integer $permission = null, boolean $update = true)
Removes a default permission on this object.
integer | $permission | The permission (DELETE, etc.) to remove. Defaults to all permissions. |
boolean | $update | Whether to automatically update the backend. |
removeGroupPermission(integer $groupId = null, integer $permission = null, boolean $update = true)
Removes a permission that a group currently has on this object.
integer | $groupId | The id of the group to remove the permission from. Defaults to all groups. |
integer | $permission | The permission (DELETE, etc.) to remove. Defaults to all permissions. |
boolean | $update | Whether to automatically update the backend. |