xo::db::sql::content_keyword proc new (public)
xo::db::sql::content_keyword new [ -dbn dbn ] -heading heading \ [ -description description ] [ -parent_id parent_id ] \ [ -keyword_id keyword_id ] [ -creation_date creation_date ] \ [ -creation_user creation_user ] [ -creation_ip creation_ip ] \ [ -object_type object_type ] [ -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)
- -heading (required)
- -description (optional)
- -parent_id (optional)
- -keyword_id (optional)
- -creation_date (optional, defaults to
"now"
)- -creation_user (optional)
- -creation_ip (optional)
- -object_type (optional, defaults to
"content_keyword"
)- -package_id (optional)
- -childof (optional)
- Testcases:
- No testcase defined.
Source code: #function_args: {HEADING {}} {DESCRIPTION null} {PARENT_ID null} {KEYWORD_ID null} {CREATION_DATE now} {CREATION_USER null} {CREATION_IP null} {OBJECT_TYPE content_keyword} {PACKAGE_ID null} foreach var [list HEADING DESCRIPTION PARENT_ID KEYWORD_ID CREATION_DATE CREATION_USER CREATION_IP OBJECT_TYPE 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_keyword__new($_HEADING, $_DESCRIPTION, $_PARENT_ID, $_KEYWORD_ID, $_CREATION_DATE, $_CREATION_USER, $_CREATION_IP, $_OBJECT_TYPE, $_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