Nextcloud PHP API (master)

ISharingManager

Tags
since
35.0.0
Attributes
#[Consumable]
$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.
generateSecret()  : non-empty-string
Generate a new secret.
generateTimestamp()  : int
Generate a new timestamp in milliseconds since the UNIX epoch.
getShare()  : Share
Get a share.
getShares()  : array<int, Share>
Get multiple shares.
onInitiatorDeleted()  : void
Perform all updates when the initiator was deleted.
onOwnerDeleted()  : void
Perform all updates when the owner was deleted.
onRecipientDeleted()  : void
Perform all updates when the recipient was deleted.
onSourceDeleted()  : void
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.
searchRecipients()  : array<int, ShareRecipient>
Search for recpients that can be added to a share.
selectSharePermissionPreset()  : void
Select a permission preset for a share.
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

generateSecret()

Generate a new secret.

public generateSecret() : non-empty-string
Tags
since
35.0.0
Return values
non-empty-string

generateTimestamp()

Generate a new timestamp in milliseconds since the UNIX epoch.

public generateTimestamp() : int
Tags
since
35.0.0
Return values
int

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>

searchRecipients()

Search for recpients that can be added to a share.

public searchRecipients(ShareAccessContext $accessContext, array<int, IShareRecipientType>>|null $recipientTypeClasses, string $query, positive-int $limit, int $offset) : array<int, ShareRecipient>
Parameters
$accessContext : ShareAccessContext
$recipientTypeClasses : array<int, IShareRecipientType>>|null
$query : string
$limit : positive-int
$offset : int
Tags
since
35.0.0
Return values
array<int, ShareRecipient>
On this page

Search results