[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/system/classes/syndication/ -> rss.feed.class.php (sommaire)

Provides feed handlers for RSS 0.9x and RSS 2.0 This library file provides multiple class definitions for dealing with variants of the RSS syndication format. We will <b>not</b> handle RSS 1.0 however, that is RDF and handled in a seperate case. This is purely for the original RSS and the 2.0 that was created to deal with the fact that RDF was overkill for the original purpose of RSS.

Author: Michael Jervis (mike@fuckingbrit.com)
Version: 1.0
Poids: 523 lignes (17 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 classes

RSS0x:: (7 méthodes):
  RSS0x()
  _formatArticle()
  _feedHeader()
  _feedFooter()
  startElement()
  endElement()
  charData()

RSS20:: (8 méthodes):
  RSS20()
  _RFC822DateFormat()
  _formatArticle()
  _feedHeader()
  _feedFooter()
  startElement()
  endElement()
  charData()


Classe: RSS0x  - X-Ref

rss0x provides reading and writing of RSS 0.91 format syndication feeds.

RSS0x()   X-Ref


_formatArticle( $article )   X-Ref
Format an article into an RSS 0.91 <item> tag.

Takes an associative article array and turns it into an XML definition
of an article. Uses merely title, link and summary.

param: array $article Associative array describing an article.

_feedHeader()   X-Ref
Return the formatted start of a feed.

This will start the xml and create header information about the feed
itself.

_feedFooter()   X-Ref
Return the formatted end of a feed.

just closes things off nicely.

startElement($parser, $name, $attributes)   X-Ref
Handle the begining of an XML element

This is called from the parserfactory once the type of data has been
determined. Standard XML_PARSER element handler.

author: Michael Jervis (mike@fuckingbrit.com)

endElement($parser, $name)   X-Ref
Handle the close of an XML element

Called by the parserfactory during parsing.

charData($parser, $data)   X-Ref
Handles character data.

Called by the parserfactory during parsing.

Classe: RSS20  - X-Ref

rss20 provides reading and writing of RSS 2.0 format syndication feeds.

RSS20()   X-Ref
Have we used GUID for link?


_RFC822DateFormat($timestamp='')   X-Ref
Generate an RFC-822 compliant date-time stamp.

param: timestamp $timestamp Date time to format.

_formatArticle( $article )   X-Ref
Format an article into an RSS 2.0 <item> tag.

Takes an associative article array and turns it into an XML definition
of an article. Uses merely title, link and summary.

param: array $article Associative array describing an article.

_feedHeader()   X-Ref
Return the formatted start of a feed.

This will start the xml and create header information about the feed
itself.

_feedFooter()   X-Ref
Return the formatted end of a feed.

just closes things off nicely.

startElement($parser, $name, $attributes)   X-Ref
Handle the begining of an XML element

This is called from the parserfactory once the type of data has been
determined. Standard XML_PARSER element handler.

author: Michael Jervis (mike@fuckingbrit.com)

endElement($parser, $name)   X-Ref
Handle the close of an XML element

Called by the parserfactory during parsing.

charData($parser, $data)   X-Ref
Handles character data.

Called by the parserfactory during parsing.



Généré le : Wed Nov 21 12:27:40 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics