Nextcloud PHP API (master)

ISenderDomainAwareCloudFederationNotification extends ICloudFederationNotification

Notification in the OCM 1.5+ format

Tags
link
https://github.com/cs3org/OCM-API/blob/v1.5.0/IETF-OCM.md#notifications
since
36.0.0
Attributes
#[Consumable]
$since: '36.0.0'

Table of Contents

Methods

getMessage()  : array<string|int, mixed>
get message, ready to send out
getNotification()  : array<string, mixed>
Additional parameters, depending on the notification type and the resource type
getNotificationType()  : string
Notification type, e.g. SHARE_ACCEPTED
getProviderId()  : string|null
Identifier assigned by the sending server to the underlying share
getResourceType()  : string|null
Type of the resource the notification is about, e.g. file
getSenderDomain()  : string
Domain of the sending server, verified against the request signature
getShareType()  : string|null
Type of the recipient the notification is about, e.g. user
setMessage()  : mixed
add a message to the notification

Methods

getMessage()

get message, ready to send out

public getMessage() : array<string|int, mixed>
Tags
since
14.0.0
Return values
array<string|int, mixed>

getNotification()

Additional parameters, depending on the notification type and the resource type

public getNotification() : array<string, mixed>
Tags
since
36.0.0
Return values
array<string, mixed>

getProviderId()

Identifier assigned by the sending server to the underlying share

public getProviderId() : string|null

deprecated by the OCM specification, identify the share from getNotification() instead

Tags
since
36.0.0
Return values
string|null

setMessage()

add a message to the notification

public setMessage(string $notificationType, string $resourceType, string $providerId, array<string|int, mixed> $notification) : mixed
Parameters
$notificationType : string

(e.g. SHARE_ACCEPTED)

$resourceType : string

(e.g. file, calendar, contact,...)

$providerId : string

id of the share

$notification : array<string|int, mixed>

payload of the notification

Tags
since
14.0.0
On this page

Search results