xo::db::sql::acs_event proc new (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 ]
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
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.
Source code: #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 ] }XQL Not present: Generic, PostgreSQL, Oracle