XML_Feed_Parser
[ class tree: XML_Feed_Parser ] [ index: XML_Feed_Parser ] [ all elements ]

Class: XML_Feed_Parser_RSS09

Source Location: /XML_Feed_Parser-0.3.0beta/Parser/RSS09.php

Class Overview

XML_Feed_Parser_Type
   |
   --XML_Feed_Parser_RSS09

This class handles RSS0.9 feeds.


Author(s):

Version:

  • Release: @package_version@

Methods


Child classes:

XML_Feed_Parser_RSS09Element
RSS0.9 Element class for XML_Feed_Parser

Inherited Variables

Inherited Methods

Class: XML_Feed_Parser_Type

XML_Feed_Parser_Type::addBase()
Gets us the xml:base data and then processes that with regard to our current link.
XML_Feed_Parser_Type::combineBases()
We have other methods which will traverse the DOM and work out the different xml:base declarations we need to be aware of. We then need to combine them.
XML_Feed_Parser_Type::count()
This function will tell us how many times the element $type appears at this level of the feed.
XML_Feed_Parser_Type::getCategory()
There is no single way of declaring a category in RSS1/1.1 as there is in RSS2
XML_Feed_Parser_Type::getContent()
The official way to include full content in an RSS1 entry is to use the content module's element 'encoded', and RSS2 feeds often duplicate that.
XML_Feed_Parser_Type::getDate()
Get a date construct. We use PHP's strtotime to return it as a unix datetime
XML_Feed_Parser_Type::getEntryByOffset()
Pretty fundamental!
XML_Feed_Parser_Type::getText()
Get a text construct.
XML_Feed_Parser_Type::hasKey()
Checks if this element has a particular child element.
XML_Feed_Parser_Type::processXHTMLAttributes()
We need a couple of methods to access XHTML content stored in feeds.
XML_Feed_Parser_Type::traverseNode()
We need a couple of methods to access XHTML content stored in feeds.

Class Details

[line 32]
This class handles RSS0.9 feeds.


[ Top ]


Method Detail

getEntryById   [line 123]

false getEntryById( string $id)

This is not something that will work with RSS0.9 as it does not have clear restrictions on the global uniqueness of IDs.

Parameters:

string   $id     any valid ID.

[ Top ]

getImage   [line 133]

array|false getImage( )

Get details of the image associated with the feed.
  • Return: an array simply containing the child elements

[ Top ]

getLink   [line 194]

string getLink( [mixed $offset = 0], [mixed $attribute = 'href'], [mixed $params = false])

In RSS1 a link is a text element but in order to ensure that we resolve URLs properly we have a special function for them.

[ Top ]

getTextInput   [line 161]

array|false getTextInput( )

The textinput element is little used, but in the interests of completeness we will support it.

[ Top ]


Documentation generated on Wed, 11 Jan 2006 16:03:33 -0500 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.