INotification
in
Interface INotification
Tags
Table of Contents
Methods
- addAction() : $this
- addParsedAction() : $this
- createAction() : IAction
- getActions() : array<string|int, IAction>
- getApp() : string
- getDateTime() : DateTime
- getIcon() : string
- Get the absolute url for the icon (should be colored black or not have a color)
- getLink() : string
- getMessage() : string
- getMessageParameters() : array<string|int, mixed>
- getObjectId() : string
- getObjectType() : string
- getParsedActions() : array<string|int, IAction>
- getParsedMessage() : string
- getParsedSubject() : string
- getRichMessage() : string
- getRichMessageParameters() : array<string|int, array<string|int, mixed>>
- getRichSubject() : string
- getRichSubjectParameters() : array<string|int, array<string|int, mixed>>
- getSubject() : string
- getSubjectParameters() : array<string|int, mixed>
- getUser() : string
- isPriorityNotification() : bool
- isValid() : bool
- isValidParsed() : bool
- setApp() : $this
- setDateTime() : $this
- setIcon() : $this
- Set the absolute url for the icon (should be colored black or not have a color)
- setLink() : $this
- setMessage() : $this
- setObject() : $this
- setParsedMessage() : $this
- Set a parsed message
- setParsedSubject() : $this
- Set a parsed subject
- setPriorityNotification() : $this
- setRichMessage() : $this
- Set a RichObjectString message
- setRichSubject() : $this
- Set a RichObjectString subject
- setSubject() : $this
- setUser() : $this
Methods
addAction()
public
addAction(IAction $action) : $this
Parameters
- $action : IAction
Tags
Return values
$thisaddParsedAction()
public
addParsedAction(IAction $action) : $this
Parameters
- $action : IAction
Tags
Return values
$thiscreateAction()
public
createAction() : IAction
Tags
Return values
IActiongetActions()
public
getActions() : array<string|int, IAction>
Tags
Return values
array<string|int, IAction>getApp()
public
getApp() : string
Tags
Return values
stringgetDateTime()
public
getDateTime() : DateTime
Tags
Return values
DateTimegetIcon()
Get the absolute url for the icon (should be colored black or not have a color)
public
getIcon() : string
It's automatically color inverted by clients when needed
Tags
Return values
stringgetLink()
public
getLink() : string
Tags
Return values
stringgetMessage()
public
getMessage() : string
Tags
Return values
stringgetMessageParameters()
public
getMessageParameters() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getObjectId()
public
getObjectId() : string
Tags
Return values
stringgetObjectType()
public
getObjectType() : string
Tags
Return values
stringgetParsedActions()
public
getParsedActions() : array<string|int, IAction>
Tags
Return values
array<string|int, IAction>getParsedMessage()
public
getParsedMessage() : string
Tags
Return values
stringgetParsedSubject()
public
getParsedSubject() : string
Tags
Return values
stringgetRichMessage()
public
getRichMessage() : string
Tags
Return values
stringgetRichMessageParameters()
public
getRichMessageParameters() : array<string|int, array<string|int, mixed>>
Tags
Return values
array<string|int, array<string|int, mixed>>getRichSubject()
public
getRichSubject() : string
Tags
Return values
stringgetRichSubjectParameters()
public
getRichSubjectParameters() : array<string|int, array<string|int, mixed>>
Tags
Return values
array<string|int, array<string|int, mixed>>getSubject()
public
getSubject() : string
Tags
Return values
stringgetSubjectParameters()
public
getSubjectParameters() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getUser()
public
getUser() : string
Tags
Return values
stringisPriorityNotification()
public
isPriorityNotification() : bool
Tags
Return values
boolisValid()
public
isValid() : bool
Tags
Return values
boolisValidParsed()
public
isValidParsed() : bool
Tags
Return values
boolsetApp()
public
setApp(string $app) : $this
Parameters
- $app : string
Tags
Return values
$thissetDateTime()
public
setDateTime(DateTime $dateTime) : $this
Parameters
- $dateTime : DateTime
Tags
Return values
$thissetIcon()
Set the absolute url for the icon (should be colored black or not have a color)
public
setIcon(string $icon) : $this
It's automatically color inverted by clients when needed
Parameters
- $icon : string
Tags
Return values
$thissetLink()
public
setLink(string $link) : $this
Parameters
- $link : string
Tags
Return values
$thissetMessage()
public
setMessage(string $message[, array<string|int, mixed> $parameters = [] ]) : $this
Parameters
- $message : string
- $parameters : array<string|int, mixed> = []
Tags
Return values
$thissetObject()
public
setObject(string $type, string $id) : $this
Parameters
- $type : string
- $id : string
Tags
Return values
$thissetParsedMessage()
Set a parsed message
public
setParsedMessage(string $message) : $this
HTML is not allowed in the parsed message and will be escaped automatically by the clients. You can use the RichObjectString system provided by the Nextcloud server to highlight important parameters via the setRichMessage method.
See https://github.com/nextcloud/server/issues/1706 for more information.
Parameters
- $message : string
Tags
Return values
$thissetParsedSubject()
Set a parsed subject
public
setParsedSubject(string $subject) : $this
HTML is not allowed in the parsed subject and will be escaped automatically by the clients. You can use the RichObjectString system provided by the Nextcloud server to highlight important parameters via the setRichSubject method.
See https://github.com/nextcloud/server/issues/1706 for more information.
Parameters
- $subject : string
Tags
Return values
$thissetPriorityNotification()
public
setPriorityNotification(bool $priorityNotification) : $this
Parameters
- $priorityNotification : bool
Tags
Return values
$thissetRichMessage()
Set a RichObjectString message
public
setRichMessage(string $message[, array<string, array<string, string>> $parameters = [] ]) : $this
HTML is not allowed in the rich message and will be escaped automatically by the clients, but you can use the RichObjectString system provided by the Nextcloud server to highlight important parameters.
See https://github.com/nextcloud/server/issues/1706 for more information.
Parameters
- $message : string
- $parameters : array<string, array<string, string>> = []
Tags
Return values
$thissetRichSubject()
Set a RichObjectString subject
public
setRichSubject(string $subject[, array<string, array<string, string>> $parameters = [] ]) : $this
HTML is not allowed in the rich subject and will be escaped automatically by the clients, but you can use the RichObjectString system provided by the Nextcloud server to highlight important parameters.
See https://github.com/nextcloud/server/issues/1706 for more information.
Parameters
- $subject : string
- $parameters : array<string, array<string, string>> = []
Tags
Return values
$thissetSubject()
public
setSubject(string $subject[, array<string|int, mixed> $parameters = [] ]) : $this
Parameters
- $subject : string
- $parameters : array<string|int, mixed> = []
Tags
Return values
$thissetUser()
public
setUser(string $user) : $this
Parameters
- $user : string