VERSION
VERSION
Serializable version.
Extension of the Horde_Share_Object class for storing share information in the Sqlng driver.
This class should be extended for the more specific drivers.
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
Returns a child's direct parent
The direct parent Horde_Share_Object
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 event. |
Whether or not $userid has $permission.
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.