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 (optional, defaults to
"content_folder"
)- -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):
- Testcases:
- content_folder, content_image, image_new, content_item, content_item_nested_structure, 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_idXQL Not present: Generic, PostgreSQL, Oracle