class NotificationMessage implements SerializableInterface

Traits

Methods

string
getCTAUrl()

Call To Action URL - when the user clicks the notifcation - where should he go to ?

int|null
getDocumentIndexId()

No description

string|null
getHtml()

No description

string
getIconCSSClass()

No description

int
getRecipientUserID()

No description

int
getSourceInstanceId()

No description

int
getSourceRegistryId()

No description

string
getStatus()

No description

string|null
getSubject()

No description

string|null
getText()

No description

string
getToken()

No description

string
getType()

No description

array
jsonSerialize()

No description

void
onSerialize()

Optional: Called before serialization (e.g. to remember/convert an unserializable prop)

void
onUnserialize()

Optional: Called after unserialize (e.g. load from db / recover or connect resource)

array|null
serializePropertiesInclude()

Optional: Override this method and specify the properties to include during serialize null = All Properties will be serialized (default) [] = No Properties will be serialized ['id'] = $this->id will be serialized

setCTAUrl(string $CTAUrl)

Call To Action URL - when the user clicks the notifcation - where should he go to ? Please provide a relative URL if you are linking to the current system!

setDocumentIndexId(int|null $id)

No description

setHtml(string $html)

No description

setHtmlToken(I18nTokenHelper $textToken)

No description

setIconCSSClass(string $iconCSSClass)

No description

setRecipientUserID(int $recipientUserID)

No description

setSourceInstanceId(int $sourceInstanceId)

We expect the ID of the instance not the STRING

setSourceRegistryId(int $sourceRegistryId)

Optional: If your module is providing multiple notifications of different type this will identify the correct registered type and its priority

setStatus(string $status = NotificationState::NEW)

No description

setSubject(string $subject)

No description

setText(string $text)

No description

setTextToken(I18nTokenHelper $textToken)

No description

setToken(string $token)

The Notification Token can be used to update this notification later or to revoke it Existing notifications with the same token from the same sourceInstanceId will automatically updated to reduce redundant messages for the user

setType(string $type = NotificationType::ACTIVITY)

No description

static object
unserializeObject(SerializedObjectHelper $SerializedObjectHelper)

No description

static object
unserializeObjectFromJSON(string $json)

No description

Details

at line 228
string getCTAUrl()

Call To Action URL - when the user clicks the notifcation - where should he go to ?

Return Value

string URL

at line 270
int|null getDocumentIndexId()

No description

Return Value

int|null

at line 154
string|null getHtml()

No description

Return Value

string|null HTML

at line 210
string getIconCSSClass()

No description

Return Value

string

at line 37
int getRecipientUserID()

No description

Return Value

int

at line 108
int getSourceInstanceId()

No description

Return Value

int

at line 248
int getSourceRegistryId()

No description

Return Value

int

at line 54
string getStatus()

No description

Return Value

string

new, seen, read

at line 127
string|null getSubject()

No description

Return Value

string|null

at line 182
string|null getText()

No description

Return Value

string|null

Plaintext Version

at line 88
string getToken()

No description

Return Value

string

at line 71
string getType()

No description

Return Value

string

array jsonSerialize()

No description

Return Value

array

Exceptions

ReflectionException

void onSerialize()

Optional: Called before serialization (e.g. to remember/convert an unserializable prop)

Return Value

void

void onUnserialize()

Optional: Called after unserialize (e.g. load from db / recover or connect resource)

Return Value

void

SerializedObjectHelper serializeObject()

No description

protected array|null serializePropertiesInclude()

Optional: Override this method and specify the properties to include during serialize null = All Properties will be serialized (default) [] = No Properties will be serialized ['id'] = $this->id will be serialized

Return Value

array|null

at line 240
NotificationMessage setCTAUrl(string $CTAUrl)

Call To Action URL - when the user clicks the notifcation - where should he go to ? Please provide a relative URL if you are linking to the current system!

Parameters

string $CTAUrl

Return Value

NotificationMessage

at line 265
NotificationMessage setDocumentIndexId(int|null $id)

No description

Parameters

int|null $id

Return Value

NotificationMessage

at line 164
NotificationMessage setHtml(string $html)

No description

Parameters

string $html

Return Value

NotificationMessage

at line 174
NotificationMessage setHtmlToken(I18nTokenHelper $textToken)

No description

Parameters

I18nTokenHelper $textToken

Return Value

NotificationMessage

at line 219
NotificationMessage setIconCSSClass(string $iconCSSClass)

No description

Parameters

string $iconCSSClass

e.g. icon-warning-sign

Return Value

NotificationMessage

at line 46
NotificationMessage setRecipientUserID(int $recipientUserID)

No description

Parameters

int $recipientUserID

Return Value

NotificationMessage

at line 119
NotificationMessage setSourceInstanceId(int $sourceInstanceId)

We expect the ID of the instance not the STRING

Parameters

int $sourceInstanceId

Return Value

NotificationMessage

at line 260
NotificationMessage setSourceRegistryId(int $sourceRegistryId)

Optional: If your module is providing multiple notifications of different type this will identify the correct registered type and its priority

Parameters

int $sourceRegistryId

Return Value

NotificationMessage

at line 63
NotificationMessage setStatus(string $status = NotificationState::NEW)

No description

Parameters

string $status

new, seen, read

Return Value

NotificationMessage

at line 136
NotificationMessage setSubject(string $subject)

No description

Parameters

string $subject

Return Value

NotificationMessage

at line 146
NotificationMessage setSubjectToken(I18nTokenHelper $subject)

No description

Parameters

I18nTokenHelper $subject

Return Value

NotificationMessage

at line 191
NotificationMessage setText(string $text)

No description

Parameters

string $text

Return Value

NotificationMessage

at line 201
NotificationMessage setTextToken(I18nTokenHelper $textToken)

No description

Parameters

I18nTokenHelper $textToken

Return Value

NotificationMessage

at line 100
NotificationMessage setToken(string $token)

The Notification Token can be used to update this notification later or to revoke it Existing notifications with the same token from the same sourceInstanceId will automatically updated to reduce redundant messages for the user

Parameters

string $token

Return Value

NotificationMessage

at line 80
NotificationMessage setType(string $type = NotificationType::ACTIVITY)

No description

Parameters

string $type

activity, message, todo

Return Value

NotificationMessage

static object unserializeObject(SerializedObjectHelper $SerializedObjectHelper)

No description

Parameters

SerializedObjectHelper $SerializedObjectHelper

Return Value

object

Exceptions

ReflectionException

static object unserializeObjectFromJSON(string $json)

No description

Parameters

string $json

Return Value

object

Exceptions

JsonException
ReflectionException