You are here

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

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

Check if given feed object is a RSS feed.

Parameters

SimpleXMLElement $sxml:

Return value

boolean 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 76
Feeds parser class for YouTube.

Class

FeedsYoutubeParser
Class definition for YouTube Parser.

Code

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