You are here

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

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

Check if given feed object is an Atom feed.

Parameters

SimpleXMLElement $sxml:

Return value

boolen TRUE if given SimpleXML object is Atom feed or FALSE

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

File

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

Class

FeedsYoutubeParser
Class definition for Youtube Parser.

Code

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