Lukaswhite\PodcastFeedParser\Parser
Class Parser
Parse a podcast feed.
Synopsis
class Parser
{
- // constants
- const NS_ITUNES = 'http://www.itunes.com/dtds/podcast-1.0.dtd';
- const NS_GOOGLE_PLAY = 'http://www.google.com/schemas/play-podcasts/1.0';
- const NS_ATOM = 'http://www.w3.org/2005/Atom';
- const NS_SYNDICATION = 'http://purl.org/rss/1.0/modules/syndication/';
- const NS_RAWVOICE = 'http://www.rawvoice.com/rawvoiceRssModule/';
- // methods
- public Parser setContent()
- public Parser load()
- public Podcast run()
- protected void parseRssTags()
- protected void parseAtomTags()
- protected void parseSyndicationFields()
- protected void parseRawvoiceFields()
- protected Episode parseEpisodeItem()
- protected Media getFile()
- protected mixed getSingleNamespacedChannelItem()
Constants
Name | Value |
---|---|
NS_ITUNES | 'http://www.itunes.com/dtds/podcast-1.0.dtd' |
NS_GOOGLE_PLAY | 'http://www.google.com/schemas/play-podcasts/1.0' |
NS_ATOM | 'http://www.w3.org/2005/Atom' |
NS_SYNDICATION | 'http://purl.org/rss/1.0/modules/syndication/' |
NS_RAWVOICE | 'http://www.rawvoice.com/rawvoiceRssModule/' |
Members
protected
- $content
—
string
The raw feed content - $sp — \SimplePie
Methods
protected
- getFile()
- getSingleNamespacedChannelItem()
- parseAtomTags()
- parseEpisodeItem()
- parseRawvoiceFields()
- parseRssTags()
- parseSyndicationFields()
public
- load()
- run() — Run the parser and return an object that represents the parsed podcast.
- setContent()