attachments::richtext::require_root_folder (private)

 attachments::richtext::require_root_folder [ -parent_id parent_id ] \
    [ -name name ]

Defined in packages/attachments/tcl/richtext-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 attachments::richtext::file_attach attachments::richtext::file_attach (public) attachments::richtext::require_root_folder attachments::richtext::require_root_folder attachments::richtext::file_attach->attachments::richtext::require_root_folder content::item::get_id content::item::get_id (public) attachments::richtext::require_root_folder->content::item::get_id content::item::new content::item::new (public) attachments::richtext::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: