core/model/modx/xmlrss/modrssparser.class.php

Show: inherited
Table of Contents

modRSSParser

Package
modx  
Subpackage
xmlrss  

\modRSSParser

Package: modx\xmlrss

RSS Parser for MODX, implementing MagpieRSS

Methods

methodpublic__construct( \modX $modx, array $config = array() ) : void

Constructor for modRSSParser

Parameters
Name Type Description
$modx \modX

&$modx A reference to the modx object.

$config array

A configuration array of properties

methodpublicparse( string $url ) : array

Parses and interprets an RSS or Atom URL

Parameters
Name Type Description
$url string

The URL of the RSS/Atom feed.

Returns
Type Description
array The parsed RSS/Atom feed. $rss->items gets you the items parsed.
Documentation was generated by DocBlox 0.18.1.