attachments::attach (public)

 attachments::attach -object_id object_id -attachment_id attachment_id \
    [ -approved_p approved_p ]

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

perform the attachment

Switches:
-object_id (required)
-attachment_id (required)
-approved_p (defaults to "t") (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 test_attachments_basic_api attachments_basic_api (test attachments) attachments::attach attachments::attach test_attachments_basic_api->attachments::attach packages/attachments/www/attach-2.tcl packages/attachments/ www/attach-2.tcl packages/attachments/www/attach-2.tcl->attachments::attach packages/attachments/www/file-add-2.tcl packages/attachments/ www/file-add-2.tcl packages/attachments/www/file-add-2.tcl->attachments::attach packages/attachments/www/simple-add-2.tcl packages/attachments/ www/simple-add-2.tcl packages/attachments/www/simple-add-2.tcl->attachments::attach packages/forums/lib/message/post.tcl packages/forums/ lib/message/post.tcl packages/forums/lib/message/post.tcl->attachments::attach richtext::ckeditor4::ckfinder::file_attach richtext::ckeditor4::ckfinder::file_attach (public) richtext::ckeditor4::ckfinder::file_attach->attachments::attach

Testcases:
attachments_basic_api
Source code:
        db_dml insert_attachment {}
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
<fullquery name="attachments::attach.insert_attachment">
    <querytext>
            insert
            into attachments
            (object_id, item_id, approved_p)
            values
            (:object_id, :attachment_id, :approved_p)
        </querytext>
</fullquery>
packages/attachments/tcl/attachments-procs.xql

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