Nextcloud PHP API (master)

IShareRecipientTypePublicSecret extends IShareRecipientType

Tags
since
35.0.0
Attributes
#[Implementable]
$since: '35.0.0'

Table of Contents

Methods

getDisplayName()  : non-empty-string
Returns a user friendly display name for this recipient type.
getRecipientDisplayName()  : non-empty-string|null
getRecipientIcon()  : null|ShareIconSVG|ShareIconURL
getRecipientInteractionReceiver()  : InteractionReceiver
getRecipients()  : array<int, string>
Get possible recipient values for the current user.
isSecretPublic()  : bool
isSecretUpdatable()  : bool
validateRecipient()  : bool
Validate that a recipient exists.

Methods

getDisplayName()

Returns a user friendly display name for this recipient type.

public getDisplayName(IFactory $l10nFactory) : non-empty-string
Parameters
$l10nFactory : IFactory
Tags
since
35.0.0
Return values
non-empty-string

getRecipientDisplayName()

public getRecipientDisplayName(non-empty-string $recipient) : non-empty-string|null
Parameters
$recipient : non-empty-string
Tags
since
35.0.0
Return values
non-empty-string|null

getRecipients()

Get possible recipient values for the current user.

public getRecipients(IUser|null $currentUser, mixed $arguments) : array<int, string>
Parameters
$currentUser : IUser|null
$arguments : mixed
Tags
since
35.0.0
Return values
array<int, string>

isSecretPublic()

public isSecretPublic(non-empty-string $recipient) : bool
Parameters
$recipient : non-empty-string
Tags
since
35.0.0
Return values
bool

isSecretUpdatable()

public isSecretUpdatable(non-empty-string $recipient) : bool
Parameters
$recipient : non-empty-string
Tags
since
35.0.0
Return values
bool

validateRecipient()

Validate that a recipient exists.

public validateRecipient(non-empty-string $recipient) : bool

Any check if the recipient is allowed to be shared to, must be implemented through RestrictInteractionEvent.

Parameters
$recipient : non-empty-string
Tags
since
35.0.0
Return values
bool
On this page

Search results