A user level alert

Alerts are intended to be displayed in the product as quick notifications generated on the fly for WHMCS users. Clients will be able to view alerts in the client area from the notification widget in the top right corner.

class Alert

Methods summary

Return Type Method Name Description
__construct(string $message, string $severity = 'info', string $link = null, string $linkText = null) Build a new user alert.
string getMessage() Retrieve an alert's message.
string getSeverity() Retrieve an alert's severity.
string getLink() Retrieve an optional link target to provide along with an alert.
string getLinkText() Retrieve an optional link text to provide along with an alert.

Details

__construct (string $message, string $severity = 'info', string $link = null, string $linkText = null)

Build a new user alert.

Parameters

string $message
string $severity
string $link
string $linkText

string getMessage ()

Retrieve an alert's message.

Return Value

string

string getSeverity ()

Retrieve an alert's severity.

Return Value

string

Retrieve an optional link target to provide along with an alert.

Return Value

string

string getLinkText ()

Retrieve an optional link text to provide along with an alert.

Return Value

string