Notifications
From LimeSurvey Manual
Have an icon in top menu about notifications to user. Can be bound to user, user group or survey.
GUI
- Bell icon
- List of last 5 messages in menu where you can can see which messages are new
- History view of all messages? Grid view.
Usage
Should be possible for the developer to invoke new notification both from PHP and JS.
$not = new Notification();
$not->type = 'danger';
$not->save();
$.ajax(
);
Database
New database table required to make notifications persist between login/logout.
Fields:
- id
- entity, like survey, user, ...
- entity_id, survey id, user id, ...
- message, the actual message
- type, success, warning, danger, info
- status, new, read
- created, datetime
- read, datetime