You are here

protected function FeedsYoutubeParser::isRssFeed in Feeds: YouTube Parser 6

Same name and namespace in other branches
  1. 7.2 FeedsYoutubeParser.inc \FeedsYoutubeParser::isRssFeed()

Check if given feed object is a RSS feed.

Parameters

SimpleXMLElement $sxml:

Return value

boolen TRUE if given SimpleXML object is RSS feed or FALSE

1 call to FeedsYoutubeParser::isRssFeed()
FeedsYoutubeParser::parse in ./FeedsYoutubeParser.inc
Parse the extra mapping sources provided by this parser.

File

./FeedsYoutubeParser.inc, line 72
Feeds parser class for Youtube

Class

FeedsYoutubeParser
Class definition for Youtube Parser.

Code

protected function isRssFeed(SimpleXMLElement $sxml) {
  return $sxml
    ->getName() == 'rss';
}