xowiki::includelet::personal-notification-messages proc message_add (public)

 xowiki::includelet::personal-notification-messages[i] message_add \
    [ -notification_id notification_id ] [ -to_user_id to_user_id ] \
    -payload payload 

Defined in 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)
-to_user_id
(optional)
-payload
(required)

Partial Call Graph (max 5 caller/called nodes):
%3

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
[ hide source ] | [ make this the default ]
Show another procedure: