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

Class: XML_Feed_Parser_RSS09Element

Source Location: /XML_Feed_Parser-0.2.8alpha/Parser/RSS09Element.php

Class Overview

XML_Feed_Parser_Type
   |
   --XML_Feed_Parser_RSS09
      |
      --XML_Feed_Parser_RSS09Element

RSS0.9 Element class for XML_Feed_Parser


Author(s):

Version:

  • CVS: $Id: RSS09Element.php,v 1.2 2005/11/07 01:52:35 jystewart Exp $

Copyright:

  • 2005 James Stewart <james@jystewart.net>

Variables

Methods


Inherited Variables

Inherited Methods

Class: XML_Feed_Parser_RSS09

XML_Feed_Parser_RSS09::__construct()
Our constructor does nothing more than its parent.
XML_Feed_Parser_RSS09::getEntryById()
This is not something that will work with RSS0.9 as it does not have clear restrictions on the global uniqueness of IDs.
XML_Feed_Parser_RSS09::getImage()
Get details of the image associated with the feed.
XML_Feed_Parser_RSS09::getLink()
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.
XML_Feed_Parser_RSS09::getTextInput()
The textinput element is little used, but in the interests of completeness we will support it.

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::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.
XML_Feed_Parser_Type::__call()
We are not going to provide methods for every entry type so this function will allow for a lot of mapping. We rely pretty heavily on this to handle our mappings between other feed types and atom.
XML_Feed_Parser_Type::__get()
For many elements variable-style access will be desirable. This function provides for that.
XML_Feed_Parser_Type::__toString()
Return an XML serialization of the feed, should it be required. Most users however, will already have a serialization that they used when instantiating the object.

Class Details

[line 32]
RSS0.9 Element class for XML_Feed_Parser

PHP versions 5

LICENSE: This source file is subject to version 3.0 of the PHP license that is available through the world-wide-web at the following URI: http://www.php.net/license/3_0.txt. If you did not receive a copy of the PHP License and are unable to obtain it through the web, please send a note to license@php.net so we can mail you a copy immediately.



[ Top ]


Class Variables

$map = array(
       'title' => array('Text'),'link'=>array('Link'))

[line 45]

Our specific element map
  • Access: protected

Type:   array
Overrides:   Array


[ Top ]

$parent =

[line 39]

This will be a reference to the parent object for when we want

to use a 'fallback' rule

  • Access: protected



[ Top ]



Method Detail

__construct (Constructor)   [line 55]

XML_Feed_Parser_RSS09Element __construct( DOMElement $element, XML_Feed_Parser_RSS1 $parent, [ $xmlBase = ''])

Store useful information for later.

Overrides XML_Feed_Parser_RSS09::__construct() (Our constructor does nothing more than its parent.)

Parameters:

DOMElement   $element   —  - this item as a DOM element
XML_Feed_Parser_RSS1   $parent   —  - the feed of which this is a member
   $xmlBase   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:32:00 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.