Свойство | Type | Description | |
---|---|---|---|
$_availablePermissions | This is necessary to unset certain permission when updating existing share objects. | ||
$_shareObject | string | The Horde_Share_Object subclass to instantiate objects as |
Méthode | Description | |
---|---|---|
__construct ( $app, $user, Horde_Perms_Base $perms, Horde_Group_Base $groups ) | ||
convertBitmaskToArray ( $perm ) : array | Converts a bit mask number to a bit mask array. | |
countOwners ( integer $perm = Horde_Perms::SHOW, mixed $parent = null, boolean $allLevels = true ) : integer | Count the number of users who have shares with the given permissions for the current user. | |
countShares ( string $userid, integer $perm = Horde_Perms::SHOW, mixed $attributes = null, mixed $parent = null, boolean $allLevels = true ) : integer | Returns the count of all shares that $userid has access to. | |
initShareObject ( Horde_Share_Object $object ) | Passes the available permissions to the share object. | |
listOwners ( integer $perm = Horde_Perms::SHOW, mixed $parent = null, boolean $allLevels = true, integer $from, integer $count ) : array | Return a list of users who have shares with the given permissions for the current user. | |
listShares ( string $userid, array $params = [] ) : array | Returns an array of all shares that $userid has access to. | |
listSystemShares ( ) : array | Returns an array of all system shares. |
Méthode | Description | |
---|---|---|
_buildPermsFromRow ( array $row ) : integer | Builds a permission bit mask from all columns in a data row prefixed with "perm_". | |
_getPermsCriteria ( string $base, array $perms ) : string | Builds an ANDed criteria snippet for a set or permissions. | |
_getShareCriteria ( string $userid, array $perms, array $attributes, array $shareids = null, $parent = null, $allLevels = true ) : string | Returns a criteria statement for querying shares. | |
_getSharePerms ( array &$data ) | Converts the permissions from the database table format into the Horde_Share format. | |
_getUserAndGroupShares ( string $userid, array $perms ) : array | Returns the records and share IDs from the user and group tables that match the search criteria. |
public __construct ( $app, $user, Horde_Perms_Base $perms, Horde_Group_Base $groups ) | ||
$perms | Horde_Perms_Base | |
$groups | Horde_Group_Base |
protected _buildPermsFromRow ( array $row ) : integer | ||
$row | array | A data row including permission columns. |
Résultat | integer | A permission mask. |
public static convertBitmaskToArray ( $perm ) : array | ||
Résultat | array | The bit mask as an array. |
public countOwners ( integer $perm = Horde_Perms::SHOW, mixed $parent = null, boolean $allLevels = true ) : integer | ||
$perm | integer | The level of permissions required. |
$parent | mixed | The parent share to start looking in. (Horde_Share_Object, share_id, or null). |
$allLevels | boolean | Return all levels, or just the direct children of $parent? |
Résultat | integer | Number of users. |
public listOwners ( integer $perm = Horde_Perms::SHOW, mixed $parent = null, boolean $allLevels = true, integer $from, integer $count ) : array | ||
$perm | integer | The level of permissions required. |
$parent | mixed | The parent share to start looking in. (Horde_Share_Object, share_id, or null) |
$allLevels | boolean | Return all levels, or just the direct children of $parent? Defaults to all levels. |
$from | integer | The user to start listing at. |
$count | integer | The number of users to return. |
Résultat | array | List of users. |