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

Class ::xo::db::sql::cal_item

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

Class Relations

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

Methods (to be applied on the object)

  • delete (scripted, public)

     xo::db::sql::cal_item[i] delete [ -dbn dbn ] -cal_item_id cal_item_id 

    Automatically generated method

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

    Partial Call Graph (max 5 caller/called nodes):
    %3 db_with_handle db_with_handle (public) xo::db::sql::cal_item proc delete xo::db::sql::cal_item proc delete xo::db::sql::cal_item proc delete->db_with_handle

    Testcases:
    No testcase defined.
    #function_args: {CAL_ITEM_ID {}}
    foreach var [list CAL_ITEM_ID]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select cal_item__delete($_CAL_ITEM_ID) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }
  • delete_all (scripted, public)

     xo::db::sql::cal_item[i] delete_all [ -dbn dbn ] \
        -recurrence_id recurrence_id 

    Automatically generated method

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

    Partial Call Graph (max 5 caller/called nodes):
    %3 db_with_handle db_with_handle (public) xo::db::sql::cal_item proc delete_all xo::db::sql::cal_item proc delete_all xo::db::sql::cal_item proc delete_all->db_with_handle

    Testcases:
    No testcase defined.
    #function_args: {RECURRENCE_ID {}}
    foreach var [list RECURRENCE_ID]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select cal_item__delete_all($_RECURRENCE_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::cal_item[i] new [ -dbn dbn ] [ -cal_item_id cal_item_id ] \
        [ -on_which_calendar on_which_calendar ] -name name  \
        -description description  [ -html_p html_p ] \
        [ -status_summary status_summary ] [ -timespan_id timespan_id ] \
        [ -activity_id activity_id ] [ -recurrence_id recurrence_id ] \
        [ -object_type object_type ] [ -context_id context_id ] \
        [ -creation_date creation_date ] [ -creation_user creation_user ] \
        [ -creation_ip creation_ip ] [ -package_id package_id ] \
        [ -location location ] [ -related_link_url related_link_url ] \
        [ -related_link_text related_link_text ] \
        [ -redirect_to_rel_link_p redirect_to_rel_link_p ] \
        [ -childof childof ]

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -cal_item_id
    (optional)
    -on_which_calendar
    (optional)
    -name
    (required)
    -description
    (required)
    -html_p
    (optional)
    -status_summary
    (optional)
    -timespan_id
    (optional)
    -activity_id
    (optional)
    -recurrence_id
    (optional)
    -object_type
    (defaults to ""cal_item"") (optional)
    -context_id
    (optional)
    -creation_date
    (defaults to "now()") (optional)
    -creation_user
    (optional)
    -creation_ip
    (optional)
    -package_id
    (optional)
    -location
    (optional)
    -related_link_url
    (optional)
    -related_link_text
    (optional)
    -redirect_to_rel_link_p
    (optional)
    -childof
    (optional)

    Partial Call Graph (max 5 caller/called nodes):
    %3 db_with_handle db_with_handle (public) xo::db::sql::cal_item proc new xo::db::sql::cal_item proc new xo::db::sql::cal_item proc new->db_with_handle

    Testcases:
    No testcase defined.
    #function_args: {CAL_ITEM_ID null} {ON_WHICH_CALENDAR null} {NAME {}} {DESCRIPTION {}} {HTML_P null} {STATUS_SUMMARY null} {TIMESPAN_ID null} {ACTIVITY_ID null} {RECURRENCE_ID null} {OBJECT_TYPE {"cal_item"}} {CONTEXT_ID null} {CREATION_DATE now()} {CREATION_USER null} {CREATION_IP null} {PACKAGE_ID null} {LOCATION null} {RELATED_LINK_URL null} {RELATED_LINK_TEXT null} {REDIRECT_TO_REL_LINK_P null}
    foreach var [list CAL_ITEM_ID ON_WHICH_CALENDAR NAME DESCRIPTION HTML_P STATUS_SUMMARY TIMESPAN_ID ACTIVITY_ID RECURRENCE_ID OBJECT_TYPE CONTEXT_ID CREATION_DATE CREATION_USER CREATION_IP PACKAGE_ID LOCATION RELATED_LINK_URL RELATED_LINK_TEXT REDIRECT_TO_REL_LINK_P]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select cal_item__new($_CAL_ITEM_ID$_ON_WHICH_CALENDAR$_NAME$_DESCRIPTION$_HTML_P$_STATUS_SUMMARY$_TIMESPAN_ID$_ACTIVITY_ID$_RECURRENCE_ID$_OBJECT_TYPE$_CONTEXT_ID$_CREATION_DATE$_CREATION_USER$_CREATION_IP$_PACKAGE_ID$_LOCATION$_RELATED_LINK_URL$_RELATED_LINK_TEXT$_REDIRECT_TO_REL_LINK_P) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }