model/modx/xmlrss/modrssparser.class.php
- package
- modx
- subpackage
- xmlrss
- Classes
- modRSSParser
Description
modRSSParser
\modRSSParser
- package
- modx
- subpackage
- xmlrss
- Methods
- __construct
- parse
Description
RSS Parser for MODX, implementing MagpieRSS
Methods
__construct
__construct(
\modX $modx, array $config
=
array
)
:
Constructor for modRSSParser
Arguments
- $modx
- \modX
&$modx A reference to the modx object. - $config
- array
A configuration array of properties
Details
- visibility
- public
- final
- false
- static
- false
parse
parse(
string $url
)
:
array
Parses and interprets an RSS or Atom URL
Arguments
- $url
- string
The URL of the RSS/Atom feed.
Output
- array
- The parsed RSS/Atom feed. $rss->items gets you the items parsed.
Details
- visibility
- public
- final
- false
- static
- false