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 46]
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 51]



Tags:

access:  public

Type:   mixed


[ Top ]

$eTag =

[line 53]



Tags:

access:  public

Type:   mixed


[ Top ]

$lastModified =

[line 52]



Tags:

access:  public

Type:   mixed


[ Top ]

$reader =

[line 49]



Tags:

access:  public

Type:   mixed


[ Top ]

$readerName =

[line 48]



Tags:

access:  public

Type:   mixed


[ Top ]

$userAgent =

[line 50]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 63]

FeedParserFactory __construct( [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.




Tags:

access:  public


Parameters:

string   $path   path to include files from.

[ Top ]

method getFeedTypes [line 151]

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 91]

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 110]

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 280]

void _charData( $parser, $data)



Tags:

access:  protected


Parameters:

   $parser  
   $data  

[ Top ]

method _endElement [line 273]

void _endElement( $parser, $name)



Tags:

access:  protected


Parameters:

   $parser  
   $name  

[ Top ]

method _findFeed [line 210]

void _findFeed( $data, [ $format = ''])

Find out what format a feed is in.



Tags:

access:  protected


Parameters:

   $data  
   $format  

[ Top ]

method _getFeed [line 170]

mixed _getFeed( string $url)

Opens a url in a file pointer



Tags:

return:  HTTP response body or boolean false
access:  protected


Parameters:

string   $url   The URL to open.

[ Top ]

method _startElement [line 245]

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



Tags:

access:  protected


Parameters:

   $parser  
   $name  
   $attributes  

[ Top ]


Documentation generated on Sun, 02 Oct 2016 07:53:16 +0000 by phpDocumentor 1.4.3