8 * @param iCalendar_Calendar $calendar One calendar of array of calendars that need to be rendered
11 static function render($calendar) {
12 if(is_array($calendar)) {
14 foreach($calendar as $single_calendar) {
15 $result .= self
::render($single_calendar) . "\r\n";
20 if(!($calendar instanceof iCalendar_Calendar
)) return ''; // nothing to render
22 return $calendar->render();