INotification¶
-
interface
OCP\Notification\
INotification
¶ - Interface INotification
Implemented by: OC\Notification\Notification
Source: lib/public/Notification/INotification.php#34
Methods¶
-
public
OCP\Notification\INotification::
setApp
($app)¶ Source: Parameters: - $app (string)
Returns: $this
Throws: \InvalidArgumentException
if the app id is invalidSince: 9.0.0
-
public
OCP\Notification\INotification::
getApp
()¶ Source: lib/public/Notification/INotification.php#47 Returns: string Since: 9.0.0
-
public
OCP\Notification\INotification::
setUser
($user)¶ Source: Parameters: - $user (string)
Returns: $this
Throws: \InvalidArgumentException
if the user id is invalidSince: 9.0.0
-
public
OCP\Notification\INotification::
getUser
()¶ Source: lib/public/Notification/INotification.php#61 Returns: string Since: 9.0.0
-
public
OCP\Notification\INotification::
setDateTime
($dateTime)¶ Source: Parameters: - $dateTime (
DateTime
)
Returns: $this
Throws: \InvalidArgumentException
if the $dateTime is invalidSince: 9.0.0
- $dateTime (
-
public
OCP\Notification\INotification::
getDateTime
()¶ Source: lib/public/Notification/INotification.php#75 Returns: \DateTime
Since: 9.0.0
-
public
OCP\Notification\INotification::
setObject
($type, $id)¶ Source: Parameters: - $type (string)
- $id (string)
Returns: $this
Throws: \InvalidArgumentException
if the object type or id is invalidSince: 9.0.0
-
public
OCP\Notification\INotification::
getObjectType
()¶ Source: lib/public/Notification/INotification.php#90 Returns: string Since: 9.0.0
-
public
OCP\Notification\INotification::
getObjectId
()¶ Source: lib/public/Notification/INotification.php#96 Returns: string Since: 9.0.0
-
public
OCP\Notification\INotification::
setSubject
($subject, $parameters=[])¶ Source: Parameters: - $subject (string)
- $parameters (array)
Returns: $this
Throws: \InvalidArgumentException
if the subject or parameters are invalidSince: 9.0.0
-
public
OCP\Notification\INotification::
getSubject
()¶ Source: lib/public/Notification/INotification.php#111 Returns: string Since: 9.0.0
-
public
OCP\Notification\INotification::
getSubjectParameters
()¶ Source: lib/public/Notification/INotification.php#117 Returns: array Since: 9.0.0
-
public
OCP\Notification\INotification::
setParsedSubject
($subject)¶ - Set a parsed subjectHTML is not allowed in the parsed subject and will be escapedautomatically by the clients. You can use the RichObjectString systemprovided by the Nextcloud server to highlight important parameters viathe setRichSubject method, but make sure, that a plain text message isalways set via setParsedSubject, to support clients which can not handlerich strings.See https://github.com/nextcloud/server/issues/1706 for more information.
Source: Parameters: - $subject (string)
Returns: $this
Throws: \InvalidArgumentException
if the subject is invalidSince: 9.0.0
-
public
OCP\Notification\INotification::
getParsedSubject
()¶ Source: lib/public/Notification/INotification.php#142 Returns: string Since: 9.0.0
-
public
OCP\Notification\INotification::
setRichSubject
($subject, $parameters=[])¶ - Set a RichObjectString subjectHTML is not allowed in the rich subject and will be escaped automaticallyby the clients, but you can use the RichObjectString system provided bythe Nextcloud server to highlight important parameters.Also make sure, that a plain text subject is always set viasetParsedSubject, to support clients which can not handle rich strings.See https://github.com/nextcloud/server/issues/1706 for more information.
Source: Parameters: - $subject (string)
- $parameters (array)
Returns: $this
Throws: \InvalidArgumentException
if the subject or parameters are invalidSince: 11.0.0
-
public
OCP\Notification\INotification::
getRichSubject
()¶ Source: lib/public/Notification/INotification.php#167 Returns: string Since: 11.0.0
-
public
OCP\Notification\INotification::
getRichSubjectParameters
()¶ Source: lib/public/Notification/INotification.php#173 Returns: array[] Since: 11.0.0
-
public
OCP\Notification\INotification::
setMessage
($message, $parameters=[])¶ Source: Parameters: - $message (string)
- $parameters (array)
Returns: $this
Throws: \InvalidArgumentException
if the message or parameters are invalidSince: 9.0.0
-
public
OCP\Notification\INotification::
getMessage
()¶ Source: lib/public/Notification/INotification.php#188 Returns: string Since: 9.0.0
-
public
OCP\Notification\INotification::
getMessageParameters
()¶ Source: lib/public/Notification/INotification.php#194 Returns: array Since: 9.0.0
-
public
OCP\Notification\INotification::
setParsedMessage
($message)¶ - Set a parsed messageHTML is not allowed in the parsed message and will be escapedautomatically by the clients. You can use the RichObjectString systemprovided by the Nextcloud server to highlight important parameters viathe setRichMessage method, but make sure, that a plain text message isalways set via setParsedMessage, to support clients which can not handlerich strings.See https://github.com/nextcloud/server/issues/1706 for more information.
Source: Parameters: - $message (string)
Returns: $this
Throws: \InvalidArgumentException
if the message is invalidSince: 9.0.0
-
public
OCP\Notification\INotification::
getParsedMessage
()¶ Source: lib/public/Notification/INotification.php#219 Returns: string Since: 9.0.0
-
public
OCP\Notification\INotification::
setRichMessage
($message, $parameters=[])¶ - Set a RichObjectString messageHTML is not allowed in the rich message and will be escaped automaticallyby the clients, but you can use the RichObjectString system provided bythe Nextcloud server to highlight important parameters.Also make sure, that a plain text message is always set viasetParsedMessage, to support clients which can not handle rich strings.See https://github.com/nextcloud/server/issues/1706 for more information.
Source: Parameters: - $message (string)
- $parameters (array)
Returns: $this
Throws: \InvalidArgumentException
if the message or parameters are invalidSince: 11.0.0
-
public
OCP\Notification\INotification::
getRichMessage
()¶ Source: lib/public/Notification/INotification.php#244 Returns: string Since: 11.0.0
-
public
OCP\Notification\INotification::
getRichMessageParameters
()¶ Source: lib/public/Notification/INotification.php#250 Returns: array[] Since: 11.0.0
-
public
OCP\Notification\INotification::
setLink
($link)¶ Source: Parameters: - $link (string)
Returns: $this
Throws: \InvalidArgumentException
if the link is invalidSince: 9.0.0
-
public
OCP\Notification\INotification::
getLink
()¶ Source: lib/public/Notification/INotification.php#264 Returns: string Since: 9.0.0
-
public
OCP\Notification\INotification::
setIcon
($icon)¶ Source: Parameters: - $icon (string)
Returns: $this
Throws: \InvalidArgumentException
if the icon is invalidSince: 11.0.0
-
public
OCP\Notification\INotification::
getIcon
()¶ Source: lib/public/Notification/INotification.php#278 Returns: string Since: 11.0.0
-
public
OCP\Notification\INotification::
createAction
()¶ Source: lib/public/Notification/INotification.php#284 Returns: \OCP\Notification\IAction
Since: 9.0.0
-
public
OCP\Notification\INotification::
addAction
($action)¶ Source: Parameters: - $action (
OCP\Notification\IAction
)
Returns: $this
Throws: \InvalidArgumentException
if the action is invalidSince: 9.0.0
- $action (
-
public
OCP\Notification\INotification::
getActions
()¶ Source: lib/public/Notification/INotification.php#298 Returns: \OCP\Notification\IAction[]
Since: 9.0.0
-
public
OCP\Notification\INotification::
addParsedAction
($action)¶ Source: Parameters: - $action (
OCP\Notification\IAction
)
Returns: $this
Throws: \InvalidArgumentException
if the action is invalidSince: 9.0.0
- $action (
-
public
OCP\Notification\INotification::
getParsedActions
()¶ Source: lib/public/Notification/INotification.php#312 Returns: \OCP\Notification\IAction[]
Since: 9.0.0
-
public
OCP\Notification\INotification::
isValid
()¶ Source: lib/public/Notification/INotification.php#318 Returns: bool Since: 9.0.0
-
public
OCP\Notification\INotification::
isValidParsed
()¶ Source: lib/public/Notification/INotification.php#324 Returns: bool Since: 9.0.0