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

Class: XML_Feed_Parser_RSS1Element

Source Location: /XML_Feed_Parser-1.0.0/Parser/RSS1Element.php

Class Overview

XML_Feed_Parser_Type
   |
   --XML_Feed_Parser_RSS1
      |
      --XML_Feed_Parser_RSS1Element

RSS1 Element class for XML_Feed_Parser


Author(s):

Version:

  • CVS: $Id: RSS1Element.php,v 1.6 2006/06/30 17:41:56 jystewart Exp $

Copyright:

  • 2005 James Stewart <james@jystewart.net>

Methods


Inherited Variables

Inherited Methods

Class: XML_Feed_Parser_RSS1

XML_Feed_Parser_RSS1::__construct()
Our constructor does nothing more than its parent.
XML_Feed_Parser_RSS1::getAuthor()
Employs various techniques to identify the author
XML_Feed_Parser_RSS1::getEntryById()
Allows retrieval of an entry by ID where the rdf:about attribute is used
XML_Feed_Parser_RSS1::getImage()
Get details of the image associated with the feed.
XML_Feed_Parser_RSS1::getLink()
Retrieve a link
XML_Feed_Parser_RSS1::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()
Determine whether we need to apply our xml:base rules
XML_Feed_Parser_Type::combineBases()
Utility function to help us resolve xml:base values
XML_Feed_Parser_Type::count()
Count occurrences of an element
XML_Feed_Parser_Type::getCategory()
Apply various rules to retrieve category data.
XML_Feed_Parser_Type::getContent()
Get content from RSS feeds (atom has its own implementation)
XML_Feed_Parser_Type::getDate()
Return a date in seconds since epoch.
XML_Feed_Parser_Type::getEntryByOffset()
Get an entry by its position in the feed, starting from zero
XML_Feed_Parser_Type::getSchemaDir()
Get directory holding RNG schemas. Method is based on that found in Contact_AddressBook.
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()
Part of our xml:base processing code
XML_Feed_Parser_Type::traverseNode()
Part of our xml:base processing code
XML_Feed_Parser_Type::__call()
Proxy to allow use of element names as method names
XML_Feed_Parser_Type::__get()
Proxy to allow use of element names as attribute names
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]
RSS1 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 ]


Method Detail

__construct (Constructor)   [line 81]

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

Store useful information for later.

Overrides XML_Feed_Parser_RSS1::__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 ]

getEnclosure   [line 110]

false getEnclosure( )

How RSS1 should support for enclosures is not clear. For now we will return false.

[ Top ]

getId   [line 96]

string|false getId( )

If an rdf:about attribute is specified, return it as an ID

There is no established way of showing an ID for an RSS1 entry. We will simulate it using the rdf:about attribute of the entry element. This cannot be relied upon for unique IDs but may prove useful.


[ Top ]


Documentation generated on Tue, 26 Dec 2006 16:32:19 -0500 by phpDocumentor 1.3.0. PEAR Logo Copyright © PHP Group 2004.