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

Class: XML_Feed_Parser

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

Class Overview


This is the core of the XML_Feed_Parser package. It identifies feed types and abstracts access to them. It is an iterator, allowing for easy access to the entire feed.


Author(s):

Version:

  • Release: @package_version@

Methods


Inherited Variables

Inherited Methods


Class Details

[line 46]
This is the core of the XML_Feed_Parser package. It identifies feed types and abstracts access to them. It is an iterator, allowing for easy access to the entire feed.
  • Version: Release: @package_version@
  • Author: James Stewart <mailto:james@jystewart.net>
  • Todo: Look into working with Tidy extension to handle ill-formed XML


[ Top ]


Method Detail

current   [line 219]

XML_Feed_Parser_Type current( )

Return XML_Feed_Type object for current element
  • Return: Object

[ Top ]

getEntryById   [line 265]

XML_Feed_Parser_Type|false getEntryById( string $id)

As well as allowing the items to be iterated over we want to allow

users to be able to access a specific entry. This is one of two ways of doing that, the other being by offset. This method can be quite slow if dealing with a large feed that hasn't yet been processed as it instantiates objects for every entry until it finds the one needed.


Parameters:

string   $id     

[ Top ]

getEntryByOffset   [line 289]

XML_Feed_Parser_Type|false getEntryByOffset( int $offset)

As well as allowing the items to be iterated over we want to allow users to be able to access a specific entry. This is one of two ways of doing that, the other being by ID.

Parameters:

int   $offset     

[ Top ]

key   [line 230]

int key( )

Part of the iteration implementation. Returns the key for the current stage in the array.

[ Top ]

next   [line 202]

void next( )

Of course we must be able to iterate... This function simply increases our internal counter.

[ Top ]

rewind   [line 250]

void rewind( )

Part of the iteration implementation. Resets the internal counter to the beginning.

[ Top ]

valid   [line 241]

bool valid( )

Part of the iteration implementation. Tells whether we have reached the end.

[ Top ]

version   [line 316]

void version( )

Retrieve version details from feed type class.
  • Author: James Stewart

[ Top ]


Documentation generated on Mon, 26 Dec 2005 13:00:16 -0500 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.