xo::db::sql::wp_slide proc new (public)
xo::db::sql::wp_slide new [ -dbn dbn ] -pres_item_id pres_item_id \ -creation_date creation_date -creation_user creation_user \ -creation_ip creation_ip -slide_title slide_title -style style \ -original_slide_id original_slide_id -sort_key sort_key \ -preamble preamble -bullet_items bullet_items \ -postamble postamble -include_in_outline_p include_in_outline_p \ -context_break_after_p context_break_after_p \ -context_id context_id [ -childof childof ]
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn (optional)
- -pres_item_id (required)
- -creation_date (required)
- -creation_user (required)
- -creation_ip (required)
- -slide_title (required)
- -style (required)
- -original_slide_id (required)
- -sort_key (required)
- -preamble (required)
- -bullet_items (required)
- -postamble (required)
- -include_in_outline_p (required)
- -context_break_after_p (required)
- -context_id (required)
- -childof (optional)
- Testcases:
- No testcase defined.
Source code: #function_args: {PRES_ITEM_ID {}} {CREATION_DATE {}} {CREATION_USER {}} {CREATION_IP {}} {SLIDE_TITLE {}} {STYLE {}} {ORIGINAL_SLIDE_ID {}} {SORT_KEY {}} {PREAMBLE {}} {BULLET_ITEMS {}} {POSTAMBLE {}} {INCLUDE_IN_OUTLINE_P {}} {CONTEXT_BREAK_AFTER_P {}} {CONTEXT_ID {}} foreach var [list PRES_ITEM_ID CREATION_DATE CREATION_USER CREATION_IP SLIDE_TITLE STYLE ORIGINAL_SLIDE_ID SORT_KEY PREAMBLE BULLET_ITEMS POSTAMBLE INCLUDE_IN_OUTLINE_P CONTEXT_BREAK_AFTER_P CONTEXT_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select wp_slide__new($_PRES_ITEM_ID, $_CREATION_DATE, $_CREATION_USER, $_CREATION_IP, $_SLIDE_TITLE, $_STYLE, $_ORIGINAL_SLIDE_ID, $_SORT_KEY, $_PREAMBLE, $_BULLET_ITEMS, $_POSTAMBLE, $_INCLUDE_IN_OUTLINE_P, $_CONTEXT_BREAK_AFTER_P, $_CONTEXT_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