Class Horde_Perms_Permission_Datatree
Extension of the Horde_DataTreeObject class for storing Permission information in the Horde_DataTree driver. If you want to store specialized Permission information, you should extend this class instead of extending Horde_DataTreeObject directly.
- Horde_DataTreeObject
- Horde_Perms_Permission_Datatree
Category: Horde
Author: Chuck Hagenbuch chuck@horde.org
Author: Jan Schneider jan@horde.org
Located at Horde/Perms/Permission/Datatree.php
public
|
#
__construct( string $name, string $type = 'matrix', array $params = null )
Constructor. Just makes sure to call the parent constructor so that the perm's name is set properly. |
public
array
|
|
public
|
|
public
mixed
|
|
public
|
|
public
|
|
public
|
|
public
|
#
addUserPermission( string $user, integer $permission, boolean $update = true )
Grants a user additional permissions to this object. |
public
|
#
addGuestPermission( integer $permission, boolean $update = true )
Grants guests additional permissions to this object. |
public
|
#
addCreatorPermission( integer $permission, boolean $update = true )
Grants creators additional permissions to this object. |
public
|
#
addDefaultPermission( integer $permission, boolean $update = true )
Grants additional default permissions to this object. |
public
|
#
addGroupPermission( integer $groupId, integer $permission, boolean $update = true )
Grants a group additional permissions to this object. |
public
|
#
removeUserPermission( string $user, integer $permission, boolean $update = true )
Removes a permission that a user currently has on this object. |
public
|
#
removeGuestPermission( integer $permission, boolean $update = true )
Removes a permission that guests currently have on this object. |
public
|
#
removeCreatorPermission( integer $permission, boolean $update = true )
Removes a permission that creators currently have on this object. |
public
|
#
removeDefaultPermission( integer $permission, boolean $update = true )
Removes a default permission on this object. |
public
|
#
removeGroupPermission( integer $groupId, integer $permission, boolean $update = true )
Removes a permission that a group currently has on this object. |
public
array
|
#
getUserPermissions( integer $perm = null )
Returns an array of all user permissions on this object. |
public
integer
|
|
public
integer
|
|
public
integer
|
|
public
array
|
#
getGroupPermissions( integer $perm = null )
Returns an array of all group permissions on this object. |
public
|