richtext::ckeditor4::ckfinder::file_attach (public)

 richtext::ckeditor4::ckfinder::file_attach \
    [ -import_file import_file ] [ -mime_type mime_type ] \
    [ -object_id object_id ] [ -privilege privilege ] \
    [ -user_id user_id ] [ -peeraddr peeraddr ] \
    [ -package_id package_id ] [ -image ]

Defined in packages/richtext-ckeditor4/tcl/ckfinder-procs.tcl

Insert the provided file to the content repository as a new item and attach it to the specified object_id via the attachment API. This makes sure that the file will be deleted from the content repository, when the provided object_id is deleted. The user must have at least "read" privileges on the object, but other stronger privileges can be supplied via parameter.

Switches:
-import_file
(optional)
-mime_type
(optional)
-object_id
(optional)
-privilege
(defaults to "read") (optional)
-user_id
(optional)
-peeraddr
(optional)
-package_id
(optional)
-image
(boolean) (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 packages/richtext-ckeditor4/tcl/ckfinder-init.tcl packages/richtext-ckeditor4/ tcl/ckfinder-init.tcl richtext::ckeditor4::ckfinder::file_attach richtext::ckeditor4::ckfinder::file_attach packages/richtext-ckeditor4/tcl/ckfinder-init.tcl->richtext::ckeditor4::ckfinder::file_attach attachments::attach attachments::attach (public) richtext::ckeditor4::ckfinder::file_attach->attachments::attach content::revision::new content::revision::new (public) richtext::ckeditor4::ckfinder::file_attach->content::revision::new permission::require_permission permission::require_permission (public) richtext::ckeditor4::ckfinder::file_attach->permission::require_permission richtext::ckeditor4::ckfinder::require_root_folder richtext::ckeditor4::ckfinder::require_root_folder (private) richtext::ckeditor4::ckfinder::file_attach->richtext::ckeditor4::ckfinder::require_root_folder

Testcases:
No testcase defined.
[ show source ]
Show another procedure: