Skip to content
Last updated

WHMCS\User\Alert

Class

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.

Methods

__construct

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

Build a new user alert.

Parameters

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

getMessage

public function getMessage()

Retrieve an alert's message.

Returns string

getSeverity

public function getSeverity()

Retrieve an alert's severity.

Returns string

public function getLink()

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

Returns string

getLinkText

public function getLinkText()

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

Returns string