richtext::ckeditor5::ckfinder::require_root_folder (private)

 richtext::ckeditor5::ckfinder::require_root_folder \
    [ -parent_id parent_id ] [ -name name ]

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

Helper function to find the root folder for ckfinder attachments.

Switches:
-parent_id (optional, defaults to "-100")
-name (optional, defaults to "attachments")

Partial Call Graph (max 5 caller/called nodes):
%3 richtext::ckeditor5::ckfinder::file_attach richtext::ckeditor5::ckfinder::file_attach (public) richtext::ckeditor5::ckfinder::require_root_folder richtext::ckeditor5::ckfinder::require_root_folder richtext::ckeditor5::ckfinder::file_attach->richtext::ckeditor5::ckfinder::require_root_folder content::item::get_id content::item::get_id (public) richtext::ckeditor5::ckfinder::require_root_folder->content::item::get_id content::item::new content::item::new (public) richtext::ckeditor5::ckfinder::require_root_folder->content::item::new

Testcases:
No testcase defined.
Source code:
        set root_folder_id [content::item::get_id  -root_folder_id $parent_id  -item_path $name]
        if {$root_folder_id eq ""} {
            set root_folder_id [content::item::new  -name $name  -parent_id $parent_id]
        }
        return $root_folder_id
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: