Horde_Perms_Permission_Kolab_Element_User
extends Horde_Perms_Permission_Kolab_Element
in package
Maps a single Horde user permission element to a Kolab_Storage ACL.
Tags
Table of Contents
- $_id : string
- The group id.
- $_permission : int
- The permission.
- __construct() : mixed
- Constructor.
- fromHorde() : string
- Convert the Horde_Perms:: mask to a Acl string.
- getId() : string
- Get the Kolab_Storage ACL id for this permission.
- unsetInCurrent() : mixed
- Unset the element in the provided permission array.
- convertMaskToAcl() : string
- Convert the a Horde_Perms:: mask to a Acl string.
Properties
$_id
The group id.
protected
string
$_id
$_permission
The permission.
protected
int
$_permission
Methods
__construct()
Constructor.
public
__construct(int $permission, string $id) : mixed
Parameters
- $permission : int
-
The folder permission as provided by Horde.
- $id : string
-
The user id.
Return values
mixed —fromHorde()
Convert the Horde_Perms:: mask to a Acl string.
public
fromHorde() : string
Return values
string —The ACL string.
getId()
Get the Kolab_Storage ACL id for this permission.
public
getId() : string
Return values
string —The ACL string.
unsetInCurrent()
Unset the element in the provided permission array.
public
unsetInCurrent(array<string|int, mixed> &$current) : mixed
Parameters
- $current : array<string|int, mixed>
-
The current permission array.
Return values
mixed —convertMaskToAcl()
Convert the a Horde_Perms:: mask to a Acl string.
protected
convertMaskToAcl() : string
Return values
string —The ACL