ISharingBackend
in
Tags
Attributes
- #[Implementable]
- $since: '35.0.0'
Table of Contents
Methods
- addShareRecipient() : void
- Add a new recipient to a share.
- addShareSource() : void
- Add a new source to a share.
- createShare() : string
- Create a new share.
- deleteShare() : void
- Delete a share.
- getShare() : Share
- Get a share.
- getShareOwner() : ShareUser
- Get the owner of a share.
- getShares() : array<int, Share>
- Get multiple shares.
- hasShare() : bool
- Check if a share ID belongs to this backend.
- onInitiatorDeleted() : array<int, string>
- Perform all updates when the initiator was deleted.
- onOwnerDeleted() : void
- Perform all updates when the owner was deleted.
- onRecipientDeleted() : array<int, string>
- Perform all updates when the recipient was deleted.
- onSourceDeleted() : array<int, string>
- Perform all updates when the source was deleted.
- removeShareRecipient() : void
- Remove an existing recipient from a share.
- removeShareSource() : void
- Remove an existing source from a share.
- selectSharePermissionPreset() : void
- Select a permission preset for a share.
- setLastUpdated() : void
- Set the last updated timestamp for multiple shares.
- updateSharePermission() : void
- Update a permission of a share.
- updateShareProperty() : void
- Update a property of a share.
- updateShareRecipientSecret() : void
- Update the scecret of a recipient.
- updateShareState() : void
- Update the state of a share.
Methods
addShareRecipient()
Add a new recipient to a share.
public
addShareRecipient(string $id, IUser $initiator, ShareRecipient $recipient) : void
Parameters
- $id : string
- $initiator : IUser
- $recipient : ShareRecipient
Tags
addShareSource()
Add a new source to a share.
public
addShareSource(string $id, ShareSource $source) : void
Parameters
- $id : string
- $source : ShareSource
Tags
createShare()
Create a new share.
public
createShare(IUser $owner) : string
Parameters
- $owner : IUser
Tags
Return values
stringdeleteShare()
Delete a share.
public
deleteShare(string $id) : void
Parameters
- $id : string
Tags
getShare()
Get a share.
public
getShare(ShareAccessContext $accessContext, string $id) : Share
Parameters
- $accessContext : ShareAccessContext
- $id : string
Tags
Return values
SharegetShareOwner()
Get the owner of a share.
public
getShareOwner(string $id) : ShareUser
Parameters
- $id : string
Tags
Return values
ShareUsergetShares()
Get multiple shares.
public
getShares(ShareAccessContext $accessContext, IShareSourceType>|null $filterSourceTypeClass, string|null $filterSourceTypeValue, string|null $lastShareID, positive-int|null $limit) : array<int, Share>
Parameters
- $accessContext : ShareAccessContext
- $filterSourceTypeClass : IShareSourceType>|null
- $filterSourceTypeValue : string|null
- $lastShareID : string|null
- $limit : positive-int|null
Tags
Return values
array<int, Share>hasShare()
Check if a share ID belongs to this backend.
public
hasShare(string $id) : bool
Parameters
- $id : string
Tags
Return values
boolonInitiatorDeleted()
Perform all updates when the initiator was deleted.
public
onInitiatorDeleted(IUser $initiator) : array<int, string>
Parameters
- $initiator : IUser
Tags
Return values
array<int, string>onOwnerDeleted()
Perform all updates when the owner was deleted.
public
onOwnerDeleted(IUser $owner) : void
Parameters
- $owner : IUser
Tags
onRecipientDeleted()
Perform all updates when the recipient was deleted.
public
onRecipientDeleted(ShareRecipient $recipient) : array<int, string>
Parameters
- $recipient : ShareRecipient
Tags
Return values
array<int, string>onSourceDeleted()
Perform all updates when the source was deleted.
public
onSourceDeleted(ShareSource $source) : array<int, string>
Parameters
- $source : ShareSource
Tags
Return values
array<int, string>removeShareRecipient()
Remove an existing recipient from a share.
public
removeShareRecipient(string $id, ShareRecipient $recipient) : void
Parameters
- $id : string
- $recipient : ShareRecipient
Tags
removeShareSource()
Remove an existing source from a share.
public
removeShareSource(string $id, ShareSource $source) : void
Parameters
- $id : string
- $source : ShareSource
Tags
selectSharePermissionPreset()
Select a permission preset for a share.
public
selectSharePermissionPreset(string $id, ISharePermissionPreset> $permissionPresetClass) : void
Parameters
- $id : string
- $permissionPresetClass : ISharePermissionPreset>
Tags
setLastUpdated()
Set the last updated timestamp for multiple shares.
public
setLastUpdated(array<int, string> $ids, int $lastUpdated) : void
Parameters
- $ids : array<int, string>
- $lastUpdated : int
Tags
updateSharePermission()
Update a permission of a share.
public
updateSharePermission(string $id, SharePermission $permission) : void
Parameters
- $id : string
- $permission : SharePermission
Tags
updateShareProperty()
Update a property of a share.
public
updateShareProperty(string $id, ShareProperty $property) : void
Parameters
- $id : string
- $property : ShareProperty
Tags
updateShareRecipientSecret()
Update the scecret of a recipient.
public
updateShareRecipientSecret(string $id, ShareRecipient $recipient, string $secret) : void
Parameters
- $id : string
- $recipient : ShareRecipient
- $secret : string
Tags
updateShareState()
Update the state of a share.
public
updateShareState(string $id, ShareState $state) : void
Parameters
- $id : string
- $state : ShareState