- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::db::sql::cal_item
::xo::db::sql::cal_item create ...
Defined in
Class Relations
::xo::db::Class create ::xo::db::sql::cal_item \ -superclass ::xotcl::ObjectMethods (to be applied on the object)
delete (scripted, public)
xo::db::sql::cal_item delete [ -dbn dbn ] -cal_item_id cal_item_idAutomatically generated method
- Switches:
- -dbn (optional)
- -cal_item_id (required)
- 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 delete_all [ -dbn dbn ] \ -recurrence_id recurrence_idAutomatically generated method
- Switches:
- -dbn (optional)
- -recurrence_id (required)
- 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 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 (optional, defaults to
""cal_item""
)- -context_id (optional)
- -creation_date (optional, defaults to
"now()"
)- -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)
- 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 ] }
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables