public static function ics_from_sscal($cal)
        {
            $events = $cal->Events();
            $eventsArr = $events->toNestedArray();

            //Debug::dump($eventsArr);
            //return false;
            $ics = new ICSExport($eventsArr);
            return $ics;
        }
public static function ics_from_sscal($cal)
        {
            $events = $cal->Events();
            $eventsArr = $events->toNestedArray();

            //Debug::dump($eventsArr);
            //return false;
            $ics = new ICSExport($eventsArr);
            return $ics;
        }
public static function ics_from_sscal ( $ cal ) { $ events = $ cal -> Events ( ) ; $ eventsArr = $ events -> toNestedArray ( ) ; //Debug::dump($eventsArr); //return false; $ ics = new ICSExport ( $ eventsArr ) ; return $ ics ; }
returns an ICSExport calendar object by supplying a Silverstripe calendar
@param type $cal
returns an ICSExport calendar object by supplying a Silverstripe calendar