xo::db::sql::content_folder proc new (public)
xo::db::sql::content_folder new [ -dbn dbn ] -name name -label label \ [ -description description ] [ -parent_id parent_id ] \ [ -context_id context_id ] [ -folder_id folder_id ] \ [ -creation_date creation_date ] [ -creation_user creation_user ] \ [ -creation_ip creation_ip ] \ [ -security_inherit_p security_inherit_p ] \ [ -package_id package_id ] [ -childof childof ]
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn (optional)
- -name (required)
- -label (required)
- -description (optional)
- -parent_id (optional)
- -context_id (optional)
- -folder_id (optional)
- -creation_date (optional, defaults to
"now"
)- -creation_user (optional)
- -creation_ip (optional)
- -security_inherit_p (optional, defaults to
"t"
)- -package_id (optional)
- -childof (optional)
- Testcases:
- xowiki_test_cases
Source code: #function_args: {NAME {}} {LABEL {}} {DESCRIPTION null} {PARENT_ID null} {CONTEXT_ID null} {FOLDER_ID null} {CREATION_DATE now} {CREATION_USER null} {CREATION_IP null} {SECURITY_INHERIT_P t} {PACKAGE_ID null} foreach var [list NAME LABEL DESCRIPTION PARENT_ID CONTEXT_ID FOLDER_ID CREATION_DATE CREATION_USER CREATION_IP SECURITY_INHERIT_P PACKAGE_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select content_folder__new($_NAME, $_LABEL, $_DESCRIPTION, $_PARENT_ID, $_CONTEXT_ID, $_FOLDER_ID, $_CREATION_DATE, $_CREATION_USER, $_CREATION_IP, $_SECURITY_INHERIT_P, $_PACKAGE_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }XQL Not present: Generic, PostgreSQL, Oracle