\apex\app\msgalerts

Handles adding of different alerts, mainly dropdown notifications and messages.

Summary

Methods
Properties
Constants
__construct()
dispatch_notification()
dispatch_message()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$websocket
N/A

Properties

$websocket

$websocket : 

Type

Methods

__construct()

__construct(\apex\app\msg\websocket  $websocket) 

Construct.

Parameters

\apex\app\msg\websocket $websocket

The web socket message to dispatch.

dispatch_notification()

dispatch_notification(string  $recipient, string  $message, string  $url) 

Add new notification alert

Parameters

string $recipient

The recipient of the alert in standard format (eg. user:915, admin:3, etc.)

string $message

The body of the alert message

string $url

The URL to link the drop-down notification to

dispatch_message()

dispatch_message(string  $recipient, string  $from, string  $message, string  $url) 

Add new dropdown notification message

Parameters

string $recipient

The recipient of the alert in standard format (eg. user:915, admin:3, etc.)

string $from

Who the message is from.

string $message

The body of the alert message

string $url

The URL to link the drop-down notification to