Class RssParser

Description

RSS/ATOM Parser

This class uses the MagpieRSS Parser by Kellan Elliott-McCrea <kellan@protest.net>. MagpieRSS is compatible with RSS 0.9 through RSS 1.0. Also parses RSS 1.0's modules, RSS 2.0, and Atom (with a few exceptions). Magpie is distributed under the GPL license. (http://magpierss.sourceforge.net/)

  • author: Tobias Gauß <tobias.gauss@web.de>
  • version: $Id: RssParser.html 443 2007-06-01 16:25:38Z cax $
  • access: public

Located in /syntax/RssParser.php (line 23)

Object
   |
   --RssParser
Variable Summary
mixed $type
Method Summary
void channel ($model &$model, $rss &$rss, $node &$node, $nmsp &$nmsp,  $type)
void dc ($node &$node, $model &$model, $dc &$dc)
parsed generateModel ($url $url)
void image ($model &$model, $rss &$rss, $bnOrg &$bnOrg, $nmsp &$nmsp)
void items ($model &$model, $rss &$rss, $bnOrg &$bnOrg, $nmsp &$nmsp)
void sy ($node &$node, $model &$model, $sy &$sy)
Variables
mixed $type (line 24)
Methods
channel (line 211)

Parses the rss channel/ atom feed.

void channel ($model &$model, $rss &$rss, $node &$node, $nmsp &$nmsp,  $type)
  • $model &$model: the model
  • $rss &$rss: the magpie parser object
  • $node &$node: the node which represents the channel
  • $nmsp &$nmsp: the
  • $type
dc (line 172)

Adds the dc namespace.

void dc ($node &$node, $model &$model, $dc &$dc)
  • $node &$node: the node
  • $model &$model: the model
  • $dc &$dc: Array which contains the dc objects
generateModel (line 32)

Main function

  • return: model
parsed generateModel ($url $url)
  • $url $url: location of the document
image (line 77)

Parses the image if there is one.

void image ($model &$model, $rss &$rss, $bnOrg &$bnOrg, $nmsp &$nmsp)
  • $model &$model: the model
  • $rss &$rss: the magpie parser object
  • $bnOrg &$bnOrg: the node which represents the channel
  • $nmsp &$nmsp: the
items (line 117)

Parses the rss items/ atom entries.

void items ($model &$model, $rss &$rss, $bnOrg &$bnOrg, $nmsp &$nmsp)
  • $model &$model: the model
  • $rss &$rss: the magpie parser object
  • $bnOrg &$bnOrg: the node which represents the channel
  • $nmsp &$nmsp: the
sy (line 190)

Adds the sy namespace.

void sy ($node &$node, $model &$model, $sy &$sy)
  • $node &$node: the node
  • $model &$model: the model
  • $sy &$sy: Array which contains the sy objects

Inherited Methods

Inherited From Object

Object::toString()

Documentation generated on Fri, 1 Jun 2007 16:51:43 +0200 by phpDocumentor 1.3.2