- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xowiki::includelet::personal-notification-messages
::xowiki::includelet::personal-notification-messages create ... \
[ -__decoration (default "plain") ] \
[ -parameter_declaration (default " {-url_poll ""} {-url_dismiss ""} {-poll_interval 5000} ") ]
Defined in
Class Relations
Methods (to be applied on the object)
get_messages_response (scripted, public)
xowiki::includelet::personal-notification-messages get_messages_response \ [ -notification_id notification_id ] [ -user_id user_id ]Get all messages for the notification-id and the give user in form of an AJAX array.
- Switches:
- -notification_id (optional, integer)
- -user_id (optional, integer)
- Testcases:
- No testcase defined.
message_add (scripted, public)
xowiki::includelet::personal-notification-messages message_add \ [ -notification_id notification_id ] [ -to_user_id to_user_id ] \ -payload payloadSend 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.
message_dismiss (scripted, public)
xowiki::includelet::personal-notification-messages message_dismiss \ [ -notification_id notification_id ] [ -user_id user_id ] \ [ -ts ts ]The user has dismissed a message. flush this message from the set of displayed messages.
- Switches:
- -notification_id (optional, integer)
- -user_id (optional, integer)
- -ts (optional, integer)
- Testcases:
- No testcase defined.
modal_message_dialog (scripted, public)
xowiki::includelet::personal-notification-messages modal_message_dialog \ -to_user_id to_user_id [ -title title ] [ -adpicon adpicon ]Create a bootstrap3/5-compatible modal dialog
- Switches:
- -to_user_id (required, integer)
- -title (optional, defaults to
"#xowiki.Send_message_to#"
)- -adpicon (optional, defaults to
"pencil"
)- Testcases:
- No testcase defined.
modal_message_dialog_register_submit (scripted, public)
xowiki::includelet::personal-notification-messages modal_message_dialog_register_submit \ -url urlRegister a submit callback for all bootstrap3 modal dialogs having an .submit class.
- Switches:
- -url (required)
- Testcases:
- create_test_items
Methods (to be applied on instances)
Variables
::xowiki::includelet::personal-notification-messages set __default_metaclass ::xotcl::Class ::xowiki::includelet::personal-notification-messages set __default_superclass ::xotcl::Object
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables