xowiki::includelet::personal-notification-messages proc message_add (public)
xowiki::includelet::personal-notification-messages message_add \ [ -notification_id notification_id ] [ -to_user_id to_user_id ] \ -payload payload
Defined in /var/www/openacs.org/packages/xowiki/tcl/personal-notification-procs.tcl
Send the user a message. The payload has the form of a dict containing at least "msg" and "from" (in form of a user_id).
- Switches:
- -notification_id (optional, integer)
- -to_user_id (optional, integer)
- -payload (required)
- Testcases:
- No testcase defined.
Source code: # # Set the timestamp to [clock microseconds]. It is assumed that we have # at most one message per microsecond to this user. # foreach to_user_id $to_user_id { nsv_dict set inclass_exam $notification_id $to_user_id [clock microseconds] $payload }XQL Not present: Generic, PostgreSQL, Oracle