notification::request::new (public)

 notification::request::new [ -request_id request_id ] -type_id type_id \
    -user_id user_id -object_id object_id -interval_id interval_id \
    -delivery_method_id delivery_method_id [ -format format ] \
    [ -dynamic_p dynamic_p ]

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

create a new request for a given user, notification type, object, interval and delivery method.

Switches:
-request_id
(optional)
-type_id
(required)
-user_id
(required)
-object_id
(required)
-interval_id
(required)
-delivery_method_id
(required)
-format
(defaults to "text") (optional)
-dynamic_p
(defaults to "f") (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 notification::new notification::new (public) notification::request::new notification::request::new notification::new->notification::request::new packages/forums/www/admin/subscribe-others-2.tcl packages/forums/ www/admin/subscribe-others-2.tcl packages/forums/www/admin/subscribe-others-2.tcl->notification::request::new packages/notifications/www/request-new-2.tcl packages/notifications/ www/request-new-2.tcl packages/notifications/www/request-new-2.tcl->notification::request::new packages/notifications/www/request-new.tcl packages/notifications/ www/request-new.tcl packages/notifications/www/request-new.tcl->notification::request::new packages/notifications/www/request-notification.tcl packages/notifications/ www/request-notification.tcl packages/notifications/www/request-notification.tcl->notification::request::new notification::request::get_request_id notification::request::get_request_id (public) notification::request::new->notification::request::get_request_id package_instantiate_object package_instantiate_object (public) notification::request::new->package_instantiate_object

Testcases:
No testcase defined.
Source code:
        set request_id [get_request_id -type_id $type_id -object_id $object_id -user_id $user_id]

        if {$request_id eq ""} {
            # Set up the vars
            set extra_vars [ns_set create s  request_id $request_id  type_id $type_id  user_id $user_id  object_id $object_id  interval_id $interval_id  delivery_method_id $delivery_method_id  format $format  dynamic_p $dynamic_p  ]

            # Create the request
            set request_id [package_instantiate_object -extra_vars $extra_vars notification_request]
        }

        return $request_id
Generic XQL file:
packages/notifications/tcl/notification-request-procs.xql

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

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

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