xo::db::sql::recurrence proc new (public)
xo::db::sql::recurrence new [ -dbn dbn ] -interval_name interval_name \ -every_nth_interval every_nth_interval \ [ -days_of_week days_of_week ] [ -recur_until recur_until ] \ [ -custom_func custom_func ] [ -childof childof ]
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn (optional)
- -interval_name (required)
- -every_nth_interval (required)
- -days_of_week (optional)
- -recur_until (optional)
- -custom_func (optional)
- -childof (optional)
- Testcases:
- No testcase defined.
Source code: #function_args: {INTERVAL_NAME {}} {EVERY_NTH_INTERVAL {}} {DAYS_OF_WEEK null} {RECUR_UNTIL null} {CUSTOM_FUNC null} foreach var [list INTERVAL_NAME EVERY_NTH_INTERVAL DAYS_OF_WEEK RECUR_UNTIL CUSTOM_FUNC] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select recurrence__new($_INTERVAL_NAME, $_EVERY_NTH_INTERVAL, $_DAYS_OF_WEEK, $_RECUR_UNTIL, $_CUSTOM_FUNC) " 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