/**
* Class to generate various "icalendar" type event feeds
*/
-class CRM_Event_ICalendar extends CRM_Core_Page {
+class CRM_Event_ICalendar {
/**
* Heart of the iCalendar data assignment process. The runner gets all the meta
* Else outputs iCalendar format per IETF RFC2445. Page param true means send
* to browser as inline content. Else, we send .ics file as attachment.
*/
- public function run() {
+ public static function run() {
$id = CRM_Utils_Request::retrieveValue('id', 'Positive', NULL, FALSE, 'GET');
$type = CRM_Utils_Request::retrieveValue('type', 'Positive', 0);
$start = CRM_Utils_Request::retrieveValue('start', 'Positive', 0);
$config = CRM_Core_Config::singleton();
$info = CRM_Event_BAO_Event::getCompleteInfo($start, $type, $id, $end);
+
$template->assign('events', $info);
$template->assign('timezone', @date_default_timezone_get());