
The response created by ERPublishCalendarPage is an iCalendar document (.ics) containing the events added to ERPublishCalendarPage by the application (see addEvent). An iCalendar-aware application, such as Apple's iCal, can subscribe to such a calendar, provided that the page has a fixed URL (either is the "Main" page, or a direct action serves the page).
Events added to a ERPublishCalendarPage is objects of any class that implements the ERCalendarEvent interface. Existing classes (for example EOCustomObject subclasses), that correspond to calendar events, can easily be modified to implement ERCalendarEvent and thus be added directly to ERPublishCalendarPage. If existing classes does not directly correspond to calendar events, create events from business data (or some algorithm) using either the included ERSimpleEvent class, a subclass of ERSimpleEvent, or any other class implementing the ERCalendarEvent interface.
| ERPublishCalendarPage | ( | WOContext | context | ) |
Standard constructor for WOComponent subclasses.
| context | context of a transaction |
WOApplication.pageWithName(String, WOContext)
| void addEvent | ( | ERCalendarEvent | event | ) |
| void addEventsFromArray | ( | NSArray | eventsArray | ) |
Adds an array of events to the calendar.
| eventsArray | the events to be included in the calendar |
| void appendToResponse | ( | WOResponse | aResponse, | |
| WOContext | aContext | |||
| ) |
Modifies content encoding to UTF8, and content type to text/calendar.
| aResponse | the HTTP response that an application returns to a Web server to complete a cycle of the request-response loop | |
| aContext | context of a transaction |
| String calendarName | ( | ) |
| NSTimestampFormatter dateFormatter | ( | ) |
| NSTimestampFormatter dateTimeFormatter | ( | ) |
| String escapedCalendarName | ( | ) |
| String escapedCalendarTimeZone | ( | ) |
| String escapedEventStatus | ( | ) |
| String escapedEventSummary | ( | ) |
| String escapedEventUniqueId | ( | ) |
| String eventRepeatDayOfWeekString | ( | ) |
| String eventRepeatDaysOfMonthString | ( | ) |
| String eventRepeatFrequency | ( | ) |
| Number eventRepeatMonth | ( | ) |
| NSTimestamp eventTimestamp | ( | ) |
Folds lines that are longer than the maximum allowed 75 characters.
| content | unfolded iCalendar content |
| void removeEvent | ( | ERCalendarEvent | event | ) |
| void removeEventsInArray | ( | NSArray | eventsArray | ) |
| void setCalendarName | ( | String | value | ) |
| void setCalendarTimeZone | ( | String | value | ) |
Sets the name of the time zone for the calendar.
| value | name of the time zone |
| NSTimestampFormatter timeZoneFormatter | ( | ) |
| NSTimestampFormatter utcDateTimeFormatter | ( | ) |
String calendarName [protected] |
String calendarTimeZone [protected] |
NSTimestampFormatter dateFormatter [protected] |
NSTimestampFormatter dateTimeFormatter [protected] |
NSMutableArray events [protected] |
NSTimestamp eventTimestamp [protected] |
final int maxLineLength = 75 [protected] |
NSTimestampFormatter timeZoneFormatter [protected] |
NSTimestampFormatter utcDateTimeFormatter [protected] |
1.5.8