%3 ::xotcl::Object ::xotcl::Object ::xo::db::sql::subsite_callback ::xo::db::sql::subsite_callback → delete → new ::xo::db::sql::subsite_callback->::xotcl::Object

Class ::xo::db::sql::subsite_callback

::xo::db::sql::subsite_callback[i] create ...

Defined in

Class Relations

  • class: ::xo::db::Class[i]
  • superclass: ::xotcl::Object[i]
::xo::db::Class create ::xo::db::sql::subsite_callback \
     -superclass ::xotcl::Object

Methods (to be applied on the object)

  • delete (scripted, public)

     xo::db::sql::subsite_callback[i] delete [ -dbn dbn ] \
        -callback_id callback_id 

    Automatically generated method

    Switches:
    -dbn (optional)
    -callback_id (required)

    Testcases:
    No testcase defined.
    #function_args: {CALLBACK_ID {}}
    foreach var [list CALLBACK_ID]  {
      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__delete($_CALLBACK_ID) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }
  • new (scripted, public)

     xo::db::sql::subsite_callback[i] 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 ]

    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)

    Testcases:
    No testcase defined.
    #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 ]
    }