xowiki::test::require_folder (private)

 xowiki::test::require_folder name parent_id package_id

Defined in packages/xowiki/tcl/test/test-procs.tcl

Parameters:
name
parent_id
package_id

Partial Call Graph (max 5 caller/called nodes):
%3 test_link_tests link_tests (test xowiki) xowiki::test::require_folder xowiki::test::require_folder test_link_tests->xowiki::test::require_folder test_path_resolve path_resolve (test xowiki) test_path_resolve->xowiki::test::require_folder test_slot_interactions slot_interactions (test xowiki) test_slot_interactions->xowiki::test::require_folder test_xowiki_test_cases xowiki_test_cases (test xowiki) test_xowiki_test_cases->xowiki::test::require_folder aa_log aa_log (public) xowiki::test::require_folder->aa_log

Testcases:
xowiki_test_cases, link_tests, slot_interactions, path_resolve
Source code:
        set item_id [::xo::db::CrClass lookup -name $name -parent_id $parent_id]

        if {$item_id == 0} {
            set form_id [::$package_id instantiate_forms -forms en:folder.form]
            set f [::$form_id create_form_page_instance  -name $name  -nls_language en_US  -default_variables [list  title "Folder $name"  parent_id $parent_id  package_id $package_id  description {{{child-resources}}}]]
            $f publish_status ready
            $f save_new
            set item_id [$f item_id]
        }
        aa_log "  $name => $item_id"
        return $item_id
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: