CRM_Utils_ICalendar
class CRM_Utils_ICalendar
Methods
static string
formatText(string $text)
Escape text elements for safe ICalendar use.
static string
unformatText(string $text)
Restore iCal formatted text to normal.
static string
formatDate($date, bool $gdata = FALSE)
Escape date elements for safe ICalendar use.
static
send(string $calendar, string $content_type = 'text/calendar', string $charset = 'us-ascii', string $fileName = NULL, string $disposition = NULL)
Send the ICalendar to the browser with the specified content type - 'text/calendar' : used for downloaded ics file - 'text/plain' : used for iCal formatted feed - 'text/xml' : used for gData or rss formatted feeds
Details
at line 50
static string
formatText(string $text)
Escape text elements for safe ICalendar use.
at line 68
static string
unformatText(string $text)
Restore iCal formatted text to normal.
at line 88
static string
formatDate($date, bool $gdata = FALSE)
Escape date elements for safe ICalendar use.
at line 119
static
send(string $calendar, string $content_type = 'text/calendar', string $charset = 'us-ascii', string $fileName = NULL, string $disposition = NULL)
Send the ICalendar to the browser with the specified content type - 'text/calendar' : used for downloaded ics file - 'text/plain' : used for iCal formatted feed - 'text/xml' : used for gData or rss formatted feeds