• Publicity: Public Only All

caldav-item-procs.tcl

CalDav implementation for OpenACS Object type for calendar items

This file defines the following Objects and Classes: ::caldav::calitem[i], ::caldav::calitem[i], ::caldav::calitem[i], ::caldav::calitem[i], ::caldav::calitem[i], ::caldav::calitem[i], ::caldav::calitem[i], ::caldav::calitem[i], ::caldav::calitem[i], ::caldav::calitem[i], ::caldav::calitem[i], ::caldav::calitem[i], ::caldav::calitem[i], ::caldav::calitem[i], ::caldav::calitem[i], ::caldav::calitem[i], ::caldav::calitem[i], ::caldav::calitem[i], ::caldav::calitem[i]

Location:
packages/caldav/tcl/caldav-item-procs.tcl
Created:
Jan, 2017
Author:
marmoser@wu.ac.at

Procedures in this file

Detailed information

Class ::caldav::calitem (public)

 ::nx::Class ::caldav::calitem[i]

"calitem" is a specialization of a ::xoical::VEVENTV providinig extra functionality. GN TODO: check, what else of this could go into VEVENT.

Testcases:
No testcase defined.

caldav::calitem method add_ical_var (public)

 <instance of caldav::calitem[i]> add_ical_var tag param value

add tag/param/value to the property ical_vars which are variables treated separately.

Parameters:
tag (required)
param (required)
value (required)

Testcases:
macOS_add_event

caldav::calitem method as_ical_calendar (public)

 <instance of caldav::calitem[i]> as_ical_calendar \
    [ -calendar_name calendar_name ]

Output a ::caldav::calitem in the form of a full calendar. For now, without timezone [::caldav::calendars timezone]

Switches:
-calendar_name (optional)

Testcases:
macOS_subscribe

caldav::calitem method as_ical_event (public)

 <instance of caldav::calitem[i]> as_ical_event

Output a ::caldav::calitem into ical VEVENT notation. It differs from standard as_ical in the following aspects: - it hard-codes the item_type to VEVENT - it handles the VALARM block handed in via ical_vars TODO: probably not the best way. - it imports the attributes of the ical_vars into instance attributes. TODO: this is dangerous - it flags entries as all day events

Testcases:
get_calitems
[ show source ]