SG_iCal_VCalendar * vtimezone => SG_iCal_VTimeZone * vevent => SG_iCal_VEvent * * => ArrayObject * * @param $ical SG_iCalReader The reader this section/data-pair belongs to * @param $section string * @param SG_iCal_Line[] */ public static function factory( SG_iCal $ical, $section, $data ) { switch( $section ) { case "vcalendar": require_once dirname(__FILE__).'/../blocks/SG_iCal_VCalendar.php'; // BUILD: Remove line return new SG_iCal_VCalendar(SG_iCal_Line::Remove_Line($data), $ical ); case "vtimezone": require_once dirname(__FILE__).'/../blocks/SG_iCal_VTimeZone.php'; // BUILD: Remove line return new SG_iCal_VTimeZone(SG_iCal_Line::Remove_Line($data), $ical ); case "vevent": require_once dirname(__FILE__).'/../blocks/SG_iCal_VEvent.php'; // BUILD: Remove line return new SG_iCal_VEvent($data, $ical ); default: return new ArrayObject(SG_iCal_Line::Remove_Line((array) $data) ); } } }