[ Index ] |
|
Code source de GeekLog 1.4.1 |
[Code source] [Imprimer] [Statistiques]
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 |
RSS0x:: (7 méthodes):
RSS0x()
_formatArticle()
_feedHeader()
_feedFooter()
startElement()
endElement()
charData()
RSS20:: (8 méthodes):
RSS20()
_RFC822DateFormat()
_formatArticle()
_feedHeader()
_feedFooter()
startElement()
endElement()
charData()
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. |
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 |
![]() |