INotification
Interface INotification
Tags
Table of Contents
- addAction() : $this
- addParsedAction() : $this
- createAction() : IAction
- getActions() : \OCP\Notification\IAction[]
- getApp() : string
- getDateTime() : DateTime
- getIcon() : string
- getLink() : string
- getMessage() : string
- getMessageParameters() : array
- getObjectId() : string
- getObjectType() : string
- getParsedActions() : \OCP\Notification\IAction[]
- getParsedMessage() : string
- getParsedSubject() : string
- getRichMessage() : string
- getRichMessageParameters() : array[]
- getRichSubject() : string
- getRichSubjectParameters() : array[]
- getSubject() : string
- getSubjectParameters() : array
- getUser() : string
- isValid() : bool
- isValidParsed() : bool
- setApp() : $this
- setDateTime() : $this
- setIcon() : $this
- setLink() : $this
- setMessage() : $this
- setObject() : $this
- setParsedMessage() : $this
- Set a parsed message
- setParsedSubject() : $this
- Set a parsed subject
- 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
$this —addParsedAction()
public
addParsedAction(IAction $action) : $this
Parameters
- $action : IAction
Tags
Return values
$this —createAction()
public
createAction() : IAction
Tags
Return values
IAction —getActions()
public
getActions() : \OCP\Notification\IAction[]
Tags
Return values
\OCP\Notification\IAction[] —getApp()
public
getApp() : string
Tags
Return values
string —getDateTime()
public
getDateTime() : DateTime
Tags
Return values
DateTime —getIcon()
public
getIcon() : string
Tags
Return values
string —getLink()
public
getLink() : string
Tags
Return values
string —getMessage()
public
getMessage() : string
Tags
Return values
string —getMessageParameters()
public
getMessageParameters() : array
Tags
Return values
array —getObjectId()
public
getObjectId() : string
Tags
Return values
string —getObjectType()
public
getObjectType() : string
Tags
Return values
string —getParsedActions()
public
getParsedActions() : \OCP\Notification\IAction[]
Tags
Return values
\OCP\Notification\IAction[] —getParsedMessage()
public
getParsedMessage() : string
Tags
Return values
string —getParsedSubject()
public
getParsedSubject() : string
Tags
Return values
string —getRichMessage()
public
getRichMessage() : string
Tags
Return values
string —getRichMessageParameters()
public
getRichMessageParameters() : array[]
Tags
Return values
array[] —getRichSubject()
public
getRichSubject() : string
Tags
Return values
string —getRichSubjectParameters()
public
getRichSubjectParameters() : array[]
Tags
Return values
array[] —getSubject()
public
getSubject() : string
Tags
Return values
string —getSubjectParameters()
public
getSubjectParameters() : array
Tags
Return values
array —getUser()
public
getUser() : string
Tags
Return values
string —isValid()
public
isValid() : bool
Tags
Return values
bool —isValidParsed()
public
isValidParsed() : bool
Tags
Return values
bool —setApp()
public
setApp(string $app) : $this
Parameters
- $app : string
Tags
Return values
$this —setDateTime()
public
setDateTime(DateTime $dateTime) : $this
Parameters
- $dateTime : DateTime
Tags
Return values
$this —setIcon()
public
setIcon(string $icon) : $this
Parameters
- $icon : string
Tags
Return values
$this —setLink()
public
setLink(string $link) : $this
Parameters
- $link : string
Tags
Return values
$this —setMessage()
public
setMessage(string $message[, array $parameters = [] ]) : $this
Parameters
- $message : string
- $parameters : array = []
Tags
Return values
$this —setObject()
public
setObject(string $type, string $id) : $this
Parameters
- $type : string
- $id : string
Tags
Return values
$this —setParsedMessage()
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, but make sure, that a plain text message is always set via setParsedMessage, to support clients which can not handle rich strings.
See https://github.com/nextcloud/server/issues/1706 for more information.
Parameters
- $message : string
Tags
Return values
$this —setParsedSubject()
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, but make sure, that a plain text message is always set via setParsedSubject, to support clients which can not handle rich strings.
See https://github.com/nextcloud/server/issues/1706 for more information.
Parameters
- $subject : string
Tags
Return values
$this —setRichMessage()
Set a RichObjectString message
public
setRichMessage(string $message[, array $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. Also make sure, that a plain text message is always set via setParsedMessage, to support clients which can not handle rich strings.
See https://github.com/nextcloud/server/issues/1706 for more information.
Parameters
- $message : string
- $parameters : array = []
Tags
Return values
$this —setRichSubject()
Set a RichObjectString subject
public
setRichSubject(string $subject[, array $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. Also make sure, that a plain text subject is always set via setParsedSubject, to support clients which can not handle rich strings.
See https://github.com/nextcloud/server/issues/1706 for more information.
Parameters
- $subject : string
- $parameters : array = []
Tags
Return values
$this —setSubject()
public
setSubject(string $subject[, array $parameters = [] ]) : $this
Parameters
- $subject : string
- $parameters : array = []
Tags
Return values
$this —setUser()
public
setUser(string $user) : $this
Parameters
- $user : string