xo::db::sql::content_folder proc new (public)

 xo::db::sql::content_folder[i] 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 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
(defaults to "now") (optional)
-creation_user
(optional)
-creation_ip
(optional)
-security_inherit_p
(defaults to "t") (optional)
-package_id
(optional)
-childof
(optional)

Partial Call Graph (max 5 caller/called nodes):
%3 test_xowiki_test_cases xowiki_test_cases (test xowiki) xo::db::sql::content_folder proc new xo::db::sql::content_folder proc new test_xowiki_test_cases->xo::db::sql::content_folder proc new db_with_handle db_with_handle (public) xo::db::sql::content_folder proc new->db_with_handle

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
[ hide source ] | [ make this the default ]
Show another procedure: