- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::db::sql::recurrence
::xo::db::sql::recurrence create ...
Defined in
Class Relations
::xo::db::Class create ::xo::db::sql::recurrence \ -superclass ::xotcl::ObjectMethods (to be applied on the object)
delete (scripted, public)
xo::db::sql::recurrence delete [ -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 recurrence__delete($_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::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 ]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.
#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 ] }
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables