content::folder::new (public)

 content::folder::new -name name [ -folder_id folder_id ] \
    [ -parent_id parent_id ] [ -content_type content_type ] \
    [ -label label ] [ -description description ] \
    [ -creation_user creation_user ] [ -creation_ip creation_ip ] \
    [ -creation_date creation_date ] [ -context_id context_id ] \
    [ -package_id package_id ]

Defined in packages/acs-content-repository/tcl/content-folder-procs.tcl

Switches:
-name (required)
-folder_id (optional)
-parent_id (optional)
-content_type (defaults to "content_folder") (optional)
-label (optional)
-description (optional)
-creation_user (optional)
-creation_ip (optional)
-creation_date (optional)
-context_id (optional)
-package_id (optional)
Returns:
Error:
Author:
Dave Bauer <dave@thedesignexperience.org>
Created:
2004-05-28

Partial Call Graph (max 5 caller/called nodes):
%3 test_content_folder content_folder (test acs-content-repository) content::folder::new content::folder::new test_content_folder->content::folder::new test_content_image content_image (test acs-content-repository) test_content_image->content::folder::new test_content_item content_item (test acs-content-repository) test_content_item->content::folder::new test_content_revision content_revision (test acs-content-repository) test_content_revision->content::folder::new test_image_new image_new (test acs-content-repository) test_image_new->content::folder::new package_instantiate_object package_instantiate_object (public) content::folder::new->package_instantiate_object bug_tracker::project_new bug_tracker::project_new (public) bug_tracker::project_new->content::folder::new cr_item_search::test_setup cr_item_search::test_setup (private) cr_item_search::test_setup->content::folder::new email_image::create_type_folder_rel email_image::create_type_folder_rel (public) email_image::create_type_folder_rel->content::folder::new fs::new_folder fs::new_folder (public) fs::new_folder->content::folder::new packages/file-storage/www/folder-add.tcl packages/file-storage/ www/folder-add.tcl packages/file-storage/www/folder-add.tcl->content::folder::new

Testcases:
content_folder, content_image, image_new, content_item, content_revision
Source code:
    set var_list [list]
    foreach var [list folder_id name label description parent_id context_id package_id] {
        lappend var_list [list $var [set $var]]
    }
    if {[info exists creation_date] && $creation_date ne ""} {
        lappend var_list [list creation_date $creation_date]
    }
    set folder_id [package_instantiate_object  -creation_user $creation_user  -creation_ip $creation_ip  -var_list $var_list  $content_type]
    return $folder_id
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: