PHP Class Horde_Perms_Permission_Kolab, horde

Inheritance: extends Horde_Perms_Permission
Show file Open project: horde/horde Class Usage Examples

Public Properties

Property Type Description
$data string A cache for the folder acl settings. The cache holds the permissions in horde compatible format, not in the IMAP permission format.

Protected Properties

Property Type Description
$_groups Horde_Group_Base The group handler.
$_storage Horde_Perms_Permission_Kolab_Storage The Kolab Folder these permissions belong to.

Public Methods

Method Description
__construct ( Horde_Perms_Permission_Kolab_Storage $storage, Horde_Group_Base $groups ) Constructor.
getCurrentPermissions ( ) Returns the current permission of the folder and stores the values in the cache.
getOwnerPermissions ( ) : integer Returns the permissions of the owner on this object.
getUserPermissions ( integer $perm = null ) : array Returns an array of all user permissions on this object.
save ( ) Saves the current permission values from the cache to the IMAP folder.

Method Details

__construct() public method

Constructor.
public __construct ( Horde_Perms_Permission_Kolab_Storage $storage, Horde_Group_Base $groups )
$storage Horde_Perms_Permission_Kolab_Storage The storage object represented by this permission instance.
$groups Horde_Group_Base The group handler.

getCurrentPermissions() public method

Returns the current permission of the folder and stores the values in the cache.

getOwnerPermissions() public method

Returns the permissions of the owner on this object.
public getOwnerPermissions ( ) : integer
return integer All owner permissions for this object.

getUserPermissions() public method

Returns an array of all user permissions on this object.
public getUserPermissions ( integer $perm = null ) : array
$perm integer List only users with this permission level. Defaults to all users.
return array All user permissions for this object, indexed by user.

save() public method

Saves the current permission values from the cache to the IMAP folder.
public save ( )

Property Details

$_groups protected property

The group handler.
protected Horde_Group_Base $_groups
return Horde_Group_Base

$_storage protected property

The Kolab Folder these permissions belong to.
protected Horde_Perms_Permission_Kolab_Storage $_storage
return Horde_Perms_Permission_Kolab_Storage

$data public property

A cache for the folder acl settings. The cache holds the permissions in horde compatible format, not in the IMAP permission format.
public string $data
return string