notification::mark_sent (public)

 notification::mark_sent -notification_id notification_id \
    -user_id user_id

Defined in packages/notifications/tcl/notification-procs.tcl

mark that a user has been sent a notification

Switches:
-notification_id (required)
-user_id (required)

Partial Call Graph (max 5 caller/called nodes):
test_notification_api_tests notification_api_tests (test notifications) notification::mark_sent notification::mark_sent test_notification_api_tests->notification::mark_sent db_dml db_dml (public) notification::mark_sent->db_dml notification::sweep::sweep_notifications notification::sweep::sweep_notifications (private) notification::sweep::sweep_notifications->notification::mark_sent

Testcases:
notification_api_tests
Source code:
        # Do the insert
        db_dml insert_notification_user_map {}
Generic XQL file:
<fullquery name="notification::mark_sent.insert_notification_user_map">
    <querytext>
            insert
            into notification_user_map
            (notification_id, user_id, sent_date)
            select :notification_id, :user_id, current_timestamp
            from dual where exists (select 1 from notifications
                                    where notification_id = :notification_id)
        </querytext>
</fullquery>
packages/notifications/tcl/notification-procs.xql

PostgreSQL XQL file:
packages/notifications/tcl/notification-procs-postgresql.xql

Oracle XQL file:
packages/notifications/tcl/notification-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: