Dotclear 2.26
|
Feed parser. More...
Public Member Functions | |
__construct (string $data) | |
Data Fields | |
$feed_type | |
$title | |
$link | |
$description | |
$pubdate | |
$generator | |
$items = [] | |
Protected Member Functions | |
parseRSSRDF () | |
parseRSS () | |
parseAtom03 () | |
parseAtom10 () | |
nodes2array (SimpleXMLElement &$node) | |
Protected Attributes | |
$xml | |
Feed parser.
This class can read RSS 1.0, RSS 2.0, Atom 0.3 and Atom 1.0 feeds. Works with feedReader
__construct | ( | string | $data | ) |
Constructor.
Takes some $data as input. Returns false if data is not a valid XML stream. If everything's fine, feed is parsed and items are in $items
property.
string | $data | XML stream |
References parseAtom03(), parseAtom10(), parseRSS(), and parseRSSRDF().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
SimpleXML to array
Converts a SimpleXMLElement to an array.
SimpleXMLElement | $node | SimpleXML Node |
Referenced by parseAtom03(), parseAtom10(), parseRSS(), and parseRSSRDF().
$feed_type |
$title |
$link |
Referenced by parseAtom03(), and parseAtom10().
$description |
$pubdate |
$generator |
Referenced by parseRSSRDF().
$items = [] |
|
protected |