attachments::detach_url (public)

 attachments::detach_url [ -package_id package_id ] \
    -object_id object_id -attachment_id attachment_id \
    [ -base_url base_url ] [ -return_url return_url ]

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

Switches:
-package_id (optional)
-object_id (required)
-attachment_id (required)
-base_url (optional)
-return_url (optional)
Returns:
the url to detach an attached item from an object

Partial Call Graph (max 5 caller/called nodes):
%3 test_attachments_url_api attachments_url_api (test attachments) attachments::detach_url attachments::detach_url test_attachments_url_api->attachments::detach_url ad_urlencode ad_urlencode (public) attachments::detach_url->ad_urlencode attachments::get_attachments_url attachments::get_attachments_url (private) attachments::detach_url->attachments::get_attachments_url attachments::get_all_attachments attachments::get_all_attachments (public) attachments::get_all_attachments->attachments::detach_url packages/forums/lib/message/attachment-list.tcl packages/forums/ lib/message/attachment-list.tcl packages/forums/lib/message/attachment-list.tcl->attachments::detach_url

Testcases:
attachments_url_api
Source code:
        return "[get_attachments_url -base_url ${base_url}]/detach?object_id=$object_id&attachment_id=$attachment_id&return_url=[ad_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: