xo::db::sql::subsite_callback proc new (public)
xo::db::sql::subsite_callback new [ -dbn dbn ] \ [ -callback_id callback_id ] -event_type event_type \ -object_type object_type -callback callback \ -callback_type callback_type [ -sort_order sort_order ] \ [ -childof childof ]
Defined in packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn
(optional)- -callback_id
(optional)- -event_type
(required)- -object_type
(required)- -callback
(required)- -callback_type
(required)- -sort_order
(optional)- -childof
(optional)- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: #function_args: {CALLBACK_ID null} {EVENT_TYPE {}} {OBJECT_TYPE {}} {CALLBACK {}} {CALLBACK_TYPE {}} {SORT_ORDER null} foreach var [list CALLBACK_ID EVENT_TYPE OBJECT_TYPE CALLBACK CALLBACK_TYPE SORT_ORDER] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select subsite_callback__new($_CALLBACK_ID, $_EVENT_TYPE, $_OBJECT_TYPE, $_CALLBACK, $_CALLBACK_TYPE, $_SORT_ORDER) " 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