core/model/modx/xmlrss/modrssparser.class.php
- Package
- modx
- Subpackage
- xmlrss
Package: modx\xmlrssRSS Parser for MODX, implementing MagpieRSS
Methods



__construct(
\modX $modx, array $config
=
array()
)
:
voidConstructor for modRSSParser
Parameters
| Name |
Type |
Description |
| $modx |
\modX |
&$modx A reference to the modx object.
|
| $config |
array |
A configuration array of properties |



parse(
string $url
)
:
arrayParses 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. |