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 (optional, defaults to
"text"
)- -dynamic_p (optional, defaults to
"f"
)- Partial Call Graph (max 5 caller/called nodes):
- 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_idGeneric 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