- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::db::sql::acs_event
::xo::db::sql::acs_event create ...
Defined in
Class Relations
::xo::db::Class create ::xo::db::sql::acs_event \ -superclass ::xotcl::ObjectMethods (to be applied on the object)
activity_set (scripted, public)
xo::db::sql::acs_event activity_set [ -dbn dbn ] -event_id event_id \ -activity_id activity_idAutomatically generated method
- Switches:
- -dbn (optional)
- -event_id (required)
- -activity_id (required)
- Testcases:
- No testcase defined.
#function_args: {EVENT_ID {}} {ACTIVITY_ID {}} foreach var [list EVENT_ID ACTIVITY_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_event__activity_set($_EVENT_ID, $_ACTIVITY_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }delete (scripted, public)
xo::db::sql::acs_event delete [ -dbn dbn ] -event_id event_idAutomatically generated method
- Switches:
- -dbn (optional)
- -event_id (required)
- Testcases:
- No testcase defined.
#function_args: {EVENT_ID {}} foreach var [list EVENT_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_event__delete($_EVENT_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::acs_event delete_all [ -dbn dbn ] -event_id event_idAutomatically generated method
- Switches:
- -dbn (optional)
- -event_id (required)
- Testcases:
- No testcase defined.
#function_args: {EVENT_ID {}} foreach var [list EVENT_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_event__delete_all($_EVENT_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_recurrences (scripted, public)
xo::db::sql::acs_event delete_all_recurrences [ -dbn dbn ] \ [ -recurrence_id recurrence_id ]Automatically generated method
- Switches:
- -dbn (optional)
- -recurrence_id (optional)
- Testcases:
- No testcase defined.
#function_args: {RECURRENCE_ID null} 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 acs_event__delete_all_recurrences($_RECURRENCE_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }get_description (scripted, public)
xo::db::sql::acs_event get_description [ -dbn dbn ] \ -event_id event_idAutomatically generated method
- Switches:
- -dbn (optional)
- -event_id (required)
- Testcases:
- No testcase defined.
#function_args: {EVENT_ID {}} foreach var [list EVENT_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_event__get_description($_EVENT_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }get_html_p (scripted, public)
xo::db::sql::acs_event get_html_p [ -dbn dbn ] -event_id event_idAutomatically generated method
- Switches:
- -dbn (optional)
- -event_id (required)
- Testcases:
- No testcase defined.
#function_args: {EVENT_ID {}} foreach var [list EVENT_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_event__get_html_p($_EVENT_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }get_name (scripted, public)
xo::db::sql::acs_event get_name [ -dbn dbn ] -event_id event_idAutomatically generated method
- Switches:
- -dbn (optional)
- -event_id (required)
- Testcases:
- No testcase defined.
#function_args: {EVENT_ID {}} foreach var [list EVENT_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_event__get_name($_EVENT_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }get_status_summary (scripted, public)
xo::db::sql::acs_event get_status_summary [ -dbn dbn ] \ -event_id event_idAutomatically generated method
- Switches:
- -dbn (optional)
- -event_id (required)
- Testcases:
- No testcase defined.
#function_args: {EVENT_ID {}} foreach var [list EVENT_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_event__get_status_summary($_EVENT_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }get_value (scripted, public)
xo::db::sql::acs_event get_value [ -dbn dbn ] \ -parameter_name parameter_nameAutomatically generated method
- Switches:
- -dbn (optional)
- -parameter_name (required)
- Testcases:
- No testcase defined.
#function_args: {PARAMETER_NAME {}} foreach var [list PARAMETER_NAME] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_event__get_value($_PARAMETER_NAME) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }insert_instances (scripted, public)
xo::db::sql::acs_event insert_instances [ -dbn dbn ] \ -event_id event_id [ -cutoff_date cutoff_date ]Automatically generated method
- Switches:
- -dbn (optional)
- -event_id (required)
- -cutoff_date (optional)
- Testcases:
- No testcase defined.
#function_args: {EVENT_ID {}} {CUTOFF_DATE null} foreach var [list EVENT_ID CUTOFF_DATE] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_event__insert_instances($_EVENT_ID, $_CUTOFF_DATE) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }instances_exist_p (scripted, public)
xo::db::sql::acs_event instances_exist_p [ -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 acs_event__instances_exist_p($_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::acs_event new [ -dbn dbn ] [ -event_id event_id ] \ [ -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 ] [ -creation_date creation_date ] \ [ -creation_user creation_user ] [ -creation_ip creation_ip ] \ [ -context_id context_id ] [ -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)
- -event_id (optional)
- -name (optional)
- -description (optional)
- -html_p (optional)
- -status_summary (optional)
- -timespan_id (optional)
- -activity_id (optional)
- -recurrence_id (optional)
- -object_type (optional, defaults to
"acs_event"
)- -creation_date (optional, defaults to
"now()"
)- -creation_user (optional)
- -creation_ip (optional)
- -context_id (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: {EVENT_ID null} {NAME null} {DESCRIPTION null} {HTML_P null} {STATUS_SUMMARY null} {TIMESPAN_ID null} {ACTIVITY_ID null} {RECURRENCE_ID null} {OBJECT_TYPE acs_event} {CREATION_DATE now()} {CREATION_USER null} {CREATION_IP null} {CONTEXT_ID null} {PACKAGE_ID null} {LOCATION null} {RELATED_LINK_URL null} {RELATED_LINK_TEXT null} {REDIRECT_TO_REL_LINK_P null} foreach var [list EVENT_ID NAME DESCRIPTION HTML_P STATUS_SUMMARY TIMESPAN_ID ACTIVITY_ID RECURRENCE_ID OBJECT_TYPE CREATION_DATE CREATION_USER CREATION_IP CONTEXT_ID 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 acs_event__new($_EVENT_ID, $_NAME, $_DESCRIPTION, $_HTML_P, $_STATUS_SUMMARY, $_TIMESPAN_ID, $_ACTIVITY_ID, $_RECURRENCE_ID, $_OBJECT_TYPE, $_CREATION_DATE, $_CREATION_USER, $_CREATION_IP, $_CONTEXT_ID, $_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 ] }new_instance (scripted, public)
xo::db::sql::acs_event new_instance [ -dbn dbn ] -event_id event_id \ -date_offset date_offsetAutomatically generated method
- Switches:
- -dbn (optional)
- -event_id (required)
- -date_offset (required)
- Testcases:
- No testcase defined.
#function_args: {EVENT_ID {}} {DATE_OFFSET {}} foreach var [list EVENT_ID DATE_OFFSET] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_event__new_instance($_EVENT_ID, $_DATE_OFFSET) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }party_map (scripted, public)
xo::db::sql::acs_event party_map [ -dbn dbn ] -event_id event_id \ -party_id party_idAutomatically generated method
- Switches:
- -dbn (optional)
- -event_id (required)
- -party_id (required)
- Testcases:
- No testcase defined.
#function_args: {EVENT_ID {}} {PARTY_ID {}} foreach var [list EVENT_ID PARTY_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_event__party_map($_EVENT_ID, $_PARTY_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }party_unmap (scripted, public)
xo::db::sql::acs_event party_unmap [ -dbn dbn ] -event_id event_id \ -party_id party_idAutomatically generated method
- Switches:
- -dbn (optional)
- -event_id (required)
- -party_id (required)
- Testcases:
- No testcase defined.
#function_args: {EVENT_ID {}} {PARTY_ID {}} foreach var [list EVENT_ID PARTY_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_event__party_unmap($_EVENT_ID, $_PARTY_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }recurrence_timespan_edit (scripted, public)
xo::db::sql::acs_event recurrence_timespan_edit [ -dbn dbn ] \ -event_id event_id -start_date start_date -end_date end_date \ -edit_past_events_p edit_past_events_pAutomatically generated method
- Switches:
- -dbn (optional)
- -event_id (required)
- -start_date (required)
- -end_date (required)
- -edit_past_events_p (required)
- Testcases:
- No testcase defined.
#function_args: {EVENT_ID {}} {START_DATE {}} {END_DATE {}} {EDIT_PAST_EVENTS_P {}} foreach var [list EVENT_ID START_DATE END_DATE EDIT_PAST_EVENTS_P] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_event__recurrence_timespan_edit($_EVENT_ID, $_START_DATE, $_END_DATE, $_EDIT_PAST_EVENTS_P) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }recurs_p (scripted, public)
xo::db::sql::acs_event recurs_p [ -dbn dbn ] -event_id event_idAutomatically generated method
- Switches:
- -dbn (optional)
- -event_id (required)
- Testcases:
- No testcase defined.
#function_args: {EVENT_ID {}} foreach var [list EVENT_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_event__recurs_p($_EVENT_ID) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }shift (scripted, public)
xo::db::sql::acs_event shift [ -dbn dbn ] [ -event_id event_id ] \ [ -start_offset start_offset ] [ -end_offset end_offset ]Automatically generated method
- Switches:
- -dbn (optional)
- -event_id (optional)
- -start_offset (optional, defaults to
"0"
)- -end_offset (optional, defaults to
"0"
)- Testcases:
- No testcase defined.
#function_args: {EVENT_ID null} {START_OFFSET 0} {END_OFFSET 0} foreach var [list EVENT_ID START_OFFSET END_OFFSET] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_event__shift($_EVENT_ID, $_START_OFFSET, $_END_OFFSET) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }shift_all (scripted, public)
xo::db::sql::acs_event shift_all [ -dbn dbn ] [ -event_id event_id ] \ [ -start_offset start_offset ] [ -end_offset end_offset ]Automatically generated method
- Switches:
- -dbn (optional)
- -event_id (optional)
- -start_offset (optional, defaults to
"0"
)- -end_offset (optional, defaults to
"0"
)- Testcases:
- No testcase defined.
#function_args: {EVENT_ID null} {START_OFFSET 0} {END_OFFSET 0} foreach var [list EVENT_ID START_OFFSET END_OFFSET] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_event__shift_all($_EVENT_ID, $_START_OFFSET, $_END_OFFSET) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }timespan_set (scripted, public)
xo::db::sql::acs_event timespan_set [ -dbn dbn ] -event_id event_id \ -timespan_id timespan_idAutomatically generated method
- Switches:
- -dbn (optional)
- -event_id (required)
- -timespan_id (required)
- Testcases:
- No testcase defined.
#function_args: {EVENT_ID {}} {TIMESPAN_ID {}} foreach var [list EVENT_ID TIMESPAN_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_event__timespan_set($_EVENT_ID, $_TIMESPAN_ID) " 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