You are here

public function ParserIcalFeedsParser::parse in iCal feed parser 6.2

Same name and namespace in other branches
  1. 7 includes/ParserIcalFeedsParser.inc \ParserIcalFeedsParser::parse()

Parse content fetched by fetcher.

Overrides FeedsParser::parse

File

includes/ParserIcalFeedsParser.inc, line 112

Class

ParserIcalFeedsParser
Class definition for iCal date module Parser.

Code

public function parse(FeedsImportBatch $batch, FeedsSource $source) {
  module_load_include('inc', 'parser_ical', 'parser_ical.dateapi');
  $result = _parser_ical_parse($batch
    ->getRaw());
  $batch
    ->setTitle($result['title']);
  $batch
    ->setItems($result['items']);

  // also available description, calscale, timezone
}