function _parser_ical_feedapi_parse in iCal feed parser 5
Same name and namespace in other branches
- 6 parser_ical.feedapi.inc \_parser_ical_feedapi_parse()
Parse the feed into a data structure
Parameters
$url: The feed's url
$cache: If the results can be cached or not
Return value
stdClass The structured datas extracted from the feed
1 call to _parser_ical_feedapi_parse()
- parser_ical_feedapi_feed in ./
parser_ical.module - Implementation of hook_feedapi_feed().
File
- ./
parser_ical.module, line 58 - Parse the incoming URL with date_api_ical
Code
function _parser_ical_feedapi_parse($feed, $cache = FALSE) {
$url = $feed->url;
// Substitute webcal with http.
if (stripos($url, 'webcal') === 0) {
$url = 'http' . substr($url, 6);
}
$downloaded_string = _parser_ical_download($url);
if ($downloaded_string === FALSE || empty($downloaded_string)) {
return $downloaded_string;
}
return _parser_ical_parse($downloaded_string);
}