Method | Description | |
---|---|---|
__construct ( string $app, string $user, Horde_Perms_Base $perms, Horde_Group_Base $groups ) | Constructor. | |
constructFolderName ( string $owner, string $subpath, string $prefix = null ) : string | Construct the Kolab storage folder name based on the share name and owner attributes. | |
constructId ( string $owner, string $name, string $prefix = null ) : string | Construct the ID from the owner name and the folder subpath. | |
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. | |
deleteAcl ( string $id, string $user ) : null | Delete Kolab specific access rights for a share. | |
getAcl ( string $id ) : An | Retrieve the Kolab specific access rights for a share. | |
getFolderNameElements ( string $folder ) : array | Retrieve namespace information for a folder name. | |
getList ( ) : Horde_Kolab_Storage_List | Return the Kolab storage folder list handler. | |
getStorage ( ) : Horde_Kolab_Storage | Return the Kolab storage backend associated with this driver. | |
getType ( ) : string | Return the type of folder this share driver will access in the Kolab storage backend (depends on the application calling the share driver). | |
listSystemShares ( ) : array | Returns an array of all system shares. | |
save ( string $id, string $old_id, array $data ) : null | Save share data to the storage backend. | |
setAcl ( string $id, string $user, string $acl ) : null | Set the Kolab specific access rights for a share. | |
setStorage ( Horde_Kolab_Storage $storage ) : null | Set the Kolab storage backend. |
Method | Description | |
---|---|---|
_addShare ( Horde_Share_Object $share ) | Adds a share to the shares system. | |
_exists ( string $share ) : boolean | Checks if a share exists in the system. | |
_getShare ( string $name ) : Horde_Share_Object | Returns a Horde_Share_Object_Kolab object corresponding to the given share name, with the details retrieved appropriately. | |
_getShareById ( integer $id ) : Horde_Share_Object_sql | Returns a Horde_Share_Object_sql object corresponding to the given unique ID, with the details retrieved appropriately. | |
_getShares ( array $ids ) : array | Returns an array of Horde_Share_Object_kolab objects corresponding to the requested folders. | |
_idExists ( integer $id ) : boolean | Check that a share id exists in the system. | |
_listAllShares ( ) : array | Lists *all* shares for the current app/share, regardless of permissions. | |
_listShares ( string $userid, array $params = [] ) : array | Returns an array of all shares that $userid has access to. | |
_newShare ( string $name ) : Horde_Share_Object_kolab | Returns a new share object. | |
_removeShare ( Horde_Share_Object $share ) | Removes a share from the shares system permanently. | |
_renameShare ( Horde_Share_Object $share, string $name ) | Renames a share in the shares system. |
Method | Description | |
---|---|---|
_createObject ( string $id, array $data = [] ) : Horde_Share_Object | Returns a Horde_Share_Object_Kolab object corresponding to the given share name, with the details retrieved appropriately. | |
_idDecode ( string $id ) : string | Decode a share ID. | |
_idDeconstruct ( string $id ) : array | Deconstruct the ID elements from the ID string | |
_idEncode ( string $id ) : string | Encode a share ID. |
public __construct ( string $app, string $user, Horde_Perms_Base $perms, Horde_Group_Base $groups ) | ||
$app | string | The application that the shares belong to |
$user | string | The current user |
$perms | Horde_Perms_Base | The permissions object |
$groups | Horde_Group_Base | The Horde_Group driver. |
public getFolderNameElements ( string $folder ) : array | ||
$folder | string | The folder name. |
return | array | A list of namespace prefix, the delimiter and the folder subpath. |
public getList ( ) : Horde_Kolab_Storage_List | ||
return | Horde_Kolab_Storage_List | The folder list handler. |
public getStorage ( ) : Horde_Kolab_Storage | ||
return | Horde_Kolab_Storage | The Kolab storage driver. |
public setStorage ( Horde_Kolab_Storage $storage ) : null | ||
$storage | Horde_Kolab_Storage | The Kolab storage handler. |
return | null |