VERSION
VERSION
Serializable version.
Extension of the Horde_Share_Object class for handling Kolab share information.
Copyright 2004-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.
listGroups(integer $perm_level = null) : array
Returns an array containing all the groupids of the groups with access to this share.
integer | $perm_level | List only users with this permission level. Defaults to all users. |
The IDs of the groups with access to this share.
hasPermission(string $userid, integer $permission, string $creator = null) : boolean
Checks to see if a user has a given permission.
string | $userid | The userid of the user. |
integer | $permission | A Horde_Perms::* constant to test for. |
string | $creator | The creator of the shared object. |
Whether or not $userid has $permission.
countChildren(string $user, integer $perm = \Horde_Perms::SHOW, boolean $allLevels = true) : integer
Return a count of the number of children this share has
string | $user | The user to use for checking perms |
integer | $perm | A Horde_Perms::* constant |
boolean | $allLevels | Count grandchildren or just children |
The number of child shares
getChildren(string $user, integer $perm = \Horde_Perms::SHOW, boolean $allLevels = true) : array
Get all children of this share.
string | $user | The user to use for checking perms |
integer | $perm | Horde_Perms::* constant. If NULL will return all shares regardless of permissions. |
boolean | $allLevels | Return all levels. |
An array of Horde_Share_Object objects
getParent() : \Horde_Share_Object|NULL
Returns a child's direct parent.
The direct parent Horde_Share_Object or NULL in case the share has no parent.