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.
public function __construct($message, $severity = 'info', $link = null, $linkText = null)Build a new user alert.
Parameters
| Type | Name | Description |
|---|---|---|
string | $message | |
string | $severity | |
string | $link | |
string | $linkText |
public function getMessage()Retrieve an alert's message.
Returns string
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
public function getLinkText()Retrieve an optional link text to provide along with an alert.
Returns string