Nextcloud PHP API (master)

ISharingBackend

Tags
since
35.0.0
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

createShare()

Create a new share.

public createShare(IUser $owner) : string
Parameters
$owner : IUser
Tags
since
35.0.0
Return values
string

getShares()

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
since
35.0.0
Return values
array<int, Share>

hasShare()

Check if a share ID belongs to this backend.

public hasShare(string $id) : bool
Parameters
$id : string
Tags
since
35.0.0
Return values
bool

onInitiatorDeleted()

Perform all updates when the initiator was deleted.

public onInitiatorDeleted(IUser $initiator) : array<int, string>
Parameters
$initiator : IUser
Tags
since
35.0.0
Return values
array<int, string>

onOwnerDeleted()

Perform all updates when the owner was deleted.

public onOwnerDeleted(IUser $owner) : void
Parameters
$owner : IUser
Tags
since
35.0.0

onRecipientDeleted()

Perform all updates when the recipient was deleted.

public onRecipientDeleted(ShareRecipient $recipient) : array<int, string>
Parameters
$recipient : ShareRecipient
Tags
since
35.0.0
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
since
35.0.0
Return values
array<int, string>

selectSharePermissionPreset()

Select a permission preset for a share.

public selectSharePermissionPreset(string $id, ISharePermissionPreset> $permissionPresetClass) : void
Parameters
$id : string
$permissionPresetClass : ISharePermissionPreset>
Tags
throws
ShareNotFoundException
since
35.0.0

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
throws
ShareNotFoundException
since
35.0.0
On this page

Search results