attachments::add_attachment_url (public)

 attachments::add_attachment_url [ -folder_id folder_id ] \
    [ -package_id package_id ] -object_id object_id \
    [ -return_url return_url ] [ -pretty_name pretty_name ]

Defined in packages/attachments/tcl/attachments-procs.tcl

Switches:
-folder_id (optional)
-package_id (optional)
-object_id (required)
-return_url (optional)
-pretty_name (optional)
Returns:
the url that can be used to attach something to an object

Partial Call Graph (max 5 caller/called nodes):
%3 test_attachments_url_api attachments_url_api (test attachments) attachments::add_attachment_url attachments::add_attachment_url test_attachments_url_api->attachments::add_attachment_url attachments::get_attachments_url attachments::get_attachments_url (private) attachments::add_attachment_url->attachments::get_attachments_url packages/calendar/www/cal-item-view.tcl packages/calendar/ www/cal-item-view.tcl packages/calendar/www/cal-item-view.tcl->attachments::add_attachment_url packages/forums/lib/message/post.tcl packages/forums/ lib/message/post.tcl packages/forums/lib/message/post.tcl->attachments::add_attachment_url

Testcases:
attachments_url_api
Source code:
        return "[get_attachments_url]/attach?pretty_object_name=[ns_urlencode $pretty_name]&folder_id=$folder_id&object_id=$object_id&return_url=[ns_urlencode $return_url]"
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/attachments/tcl/attachments-procs.xql

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