attachments::get_all_attachments (public)
attachments::get_all_attachments -object_id object_id \ [ -base_url base_url ] [ -return_url return_url ] \ [ -approved_only ] [ -add_detach_url ]
Defined in packages/attachments/tcl/attachments-procs.tcl
- Switches:
- -object_id
(required)- object to check for attachments.
- -base_url
(optional)- URL path that will be prepended to generated URLs.
- -return_url
(optional)- only meaningful if we are also generating detach_url, is the location we will return to after detaching.
- -approved_only
(boolean) (optional)- flag deciding if we want to return only attachments that have been approved. All attachments will be returned when this is not specified.
- -add_detach_url
(boolean) (optional)- flag deciding whether we want to generate also detach_url in the result.
- Returns:
- a list representing attachments and their UI URLs.
list of lists in the format {item_id name url} or {item_id name url detach_url} whenadd_detach_url
is specified.- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- attachments_basic_api