Standards  1.0
Notification System

Data Structures

interface  iNotificationSystem_Notification
 A notification entity for the NotificationSystem standard. More...
 

Detailed Description

Standard id: NotificationSystem

Requires: UserSystem

This is is a simple Notification system for notifying users about events and alerts.

To create a notification use this:

$ns = Standards::NotificationSystem();
$noti = new $ns->Notification(); //Create the object.
$noti->setUser(6032); //Send this to the user with an id of 6032
$noti->setTitle("Hello");
$noti->setBody("world!!!");
$noti->email(); //Email the user with notification.
$noti->save(); //Save the notification in the database so that the user can see it.