- Publicity: Public Only All
ical-procs.tcl
Utility functions for ical data
This file defines the following Objects and Classes: ::xo::ical::VEVENT, ::xo::ical::VCALITEM
- Location:
- packages/xotcl-core/tcl/ical-procs.tcl
- Created:
- July 20, 2005, modernized in 2019
- Author:
- neumann@wu-wien.ac.at
Procedures in this file
- Class ::xo::ical::VCALITEM (public)
- Class ::xo::ical::VEVENT (public)
- xo::ical::VCALITEM instproc add_recurrence (public)
- xo::ical::VCALITEM instproc as_ical (public)
- xo::ical::VCALITEM instproc edit_recurrence (public)
- xo::ical::VCALITEM instproc get (public)
- xo::ical::VCALITEM instproc ical_body (public)
- xo::ical::VCALITEM instproc {parse RRULE} (public)
- xo::ical::VEVENT instproc finish (public)
Detailed information
Class ::xo::ical::VCALITEM (public)
::nx::Class ::xo::ical::VCALITEM
VCALITEM is the superclass of a VTODO and a VEVENT, intended as an abstract class.
- Testcases:
- No testcase defined.
Class ::xo::ical::VEVENT (public)
::nx::Class ::xo::ical::VEVENT
VEVENT optional fields, must not occur more than once class / *created / *description / *dtstart / *geo / *last-mod / *location / organizer / *priority / *dtstamp / seq / *status / *summary / transp / *uid / *url / recurid / dtend or duration may appear, but dtend and duration are mutual exclusive *dtend / duration / optional fields, may occur more than once attach / attendee / categories / comment / contact / exdate / exrule / rstatus / related / resources / rdate / rrule / x-prop
- Testcases:
- No testcase defined.
xo::ical::VCALITEM method add_recurrence (public)
<instance of xo::ical::VCALITEM> add_recurrence \ [ -cal_item_id cal_item_id ]
Call calendar::item::add_recurrence with the options calculated by "parse RRULE"
- Switches:
- -cal_item_id (optional, integer)
- Testcases:
- No testcase defined.
xo::ical::VCALITEM method as_ical (public)
<instance of xo::ical::VCALITEM> as_ical
Output a VCALITEM (VTODO or VEVENT) "object" in ical notation.
- Testcases:
- No testcase defined.
xo::ical::VCALITEM method edit_recurrence (public)
<instance of xo::ical::VCALITEM> edit_recurrence \ [ -cal_item_id cal_item_id ] [ -recurrence_id recurrence_id ]
We might or might not have a recurrence on the old entry. In case we have one, the old one might have started earlier, so we try to terminate it.
- Switches:
- -cal_item_id (optional, integer)
- -recurrence_id (optional, integer, accept empty)
- Testcases:
- No testcase defined.
xo::ical::VCALITEM method get (public)
<instance of xo::ical::VCALITEM> get property [ default ]
Return a certain property of an ical items. In case, the item has no such property, return the default value.
- Parameters:
- property (required)
- default (optional)
- Testcases:
- No testcase defined.
xo::ical::VCALITEM method ical_body (public)
<instance of xo::ical::VCALITEM> ical_body
The method ical_body returns the ical-formatted content of the variables. All variables of VEVENTs and VTODOs are listed below, since the names are distinct, and no methods are used. So far there is no handling for the repetition fields (which might occur more than once). An option would be to handle these as lists. All date/timestamps are provided either by the ANSI date (from postgres) or by a date which can be processed via clock scan
- Testcases:
- No testcase defined.
xo::ical::VCALITEM method parse RRULE (public)
<instance of xo::ical::VCALITEM> parse RRULE recurrule
parse recurrence rule provided in cal syntax. This method assumes that the instance variable dtstart is already set, before this method is called.
- Parameters:
- recurrule (required)
- Testcases:
- No testcase defined.
xo::ical::VEVENT method finish (public)
<instance of xo::ical::VEVENT> finish parse_error
In case, there was no :dtend given, set it either to the value of :dtstart, or :dtstart + :duration
- Parameters:
- parse_error (required)
- Testcases:
- No testcase defined.