- Publicity: Public Only All
ckfinder-procs.tcl
CKEditor 4 helper for ckfinder interface (not complete) This script defines the following public procs: ::richtext::ckeditor4::ckfinder::file_attach ::richtext::ckeditor4::ckfinder::return_file
- Location:
- packages/richtext-ckeditor4/tcl/ckfinder-procs.tcl
- Created:
- 15 Aug 2017
- Author:
- Gustaf Neumann
- CVS Identification:
$Id: ckfinder-procs.tcl,v 1.4.2.5 2022/02/26 13:23:47 gustafn Exp $ NOTE: the delivery of files performs two permission checks, once in the requestprocessor (the site nodes) and once for the concrete file. If one whishes to make uploaded files readable by "The Public", make sure that the /
Procedures in this file
- richtext::ckeditor4::ckfinder::file_attach (public)
- richtext::ckeditor4::ckfinder::return_file (public)
Detailed information
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 ]
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 (optional, defaults to
"read"
)- -user_id (optional)
- -peeraddr (optional)
- -package_id (optional)
- -image (optional, boolean)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
richtext::ckeditor4::ckfinder::return_file (public)
richtext::ckeditor4::ckfinder::return_file \ [ -revision_id revision_id ] [ -user_id user_id ]
Return the file with the specified revision_id to the user. The user must have at least "read" permissions to obtain the file.
- Switches:
- -revision_id (optional)
- -user_id (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.