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

Class: FeedParserFactory

Source Location: /system/classes/syndication/parserfactory.class.php

Class Overview


FeedParserFactory provides generic access to syndication feed formats.


Author(s):

  • Michael Jervis (mike@Fuckingbrit.com)

Copyright:

  • Michael Jervis 2004

Variables

Methods



Class Details

[line 45]
FeedParserFactory provides generic access to syndication feed formats.

This library provides abstraction of feed formats. It provides a factory pattern interface to constructing feed handlers to parse incoming syndication files, and write outgoing syndication files. The interface is not tied to any system implementation, however, I plan to provide interface to geeklog.




Tags:

author:  Michael Jervis (mike@Fuckingbrit.com)
copyright:  Michael Jervis 2004
see:  FeedParserBase


[ Top ]


Class Variables

$errorStatus =

[line 50]


Type:   mixed


[ Top ]

$eTag =

[line 52]


Type:   mixed


[ Top ]

$lastModified =

[line 51]


Type:   mixed


[ Top ]

$reader =

[line 48]


Type:   mixed


[ Top ]

$readerName =

[line 47]


Type:   mixed


[ Top ]

$userAgent =

[line 49]


Type:   mixed


[ Top ]



Class Methods


constructor FeedParserFactory [line 62]

FeedParserFactory FeedParserFactory( [string $path = ''])

Constructor, loads feedparser classes into memory.

This takes a path on which the supporting feed classes exist, and then tries to find all *.feed.class.php and brings them into scope.




Parameters:

string   $path   path to include files from.

[ Top ]

method getFeedTypes [line 162]

void getFeedTypes( )

Provides an array of feed types understood.

Provides an array of feed types understood. Yeah it's manual, but, the feed reader has to be edited to support new inbounds anyway.




Tags:

access:  public


[ Top ]

method reader [line 92]

void reader( string $url, [ $targetformat = ''])

Method to get a feed handler class.

This function takes a url, fetches it, parses it, and thus figures out what type of feed parser to return, with the contents all parsed for your viewing pleasure.




Tags:

access:  public


Parameters:

string   $url   The url to a feed type to syndicate.
   $targetformat  

[ Top ]

method writer [line 112]

void writer( string $feedtype, [float $version = 2.0])

Method to get a feed handler class.

this function assumes you know what you want, and gets you a blank feed handler to write that data.




Tags:

access:  public


Parameters:

string   $feedtype   the type of feed to get
float   $version   the version

[ Top ]

method _charData [line 293]

void _charData( $parser, $data)



Parameters:

   $parser  
   $data  

[ Top ]

method _endElement [line 285]

void _endElement( $parser, $name)



Parameters:

   $parser  
   $name  

[ Top ]

method _startElement [line 243]

void _startElement( $parser, $name, $attributes)



Parameters:

   $parser  
   $name  
   $attributes  

[ Top ]


Documentation generated on Thu, 24 May 2012 02:08:44 -0400 by phpDocumentor 1.4.3