[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/system/classes/syndication/ -> parserfactory.class.php (sommaire)

(pas de description)

Poids: 287 lignes (9 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

FeedParserFactory:: (9 méthodes):
  FeedParserFactory()
  reader()
  writer()
  getFeedTypes()
  _getFeed()
  _findFeed()
  _startElement()
  _endElement()
  _charData()


Classe: FeedParserFactory  - X-Ref

FeedParserFactory provides generic access to syndication feed formats.

<p>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.</p>

FeedParserFactory( $path='' )   X-Ref
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.

param: string $path path to include files from.

reader( $url, $targetformat='' )   X-Ref
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.

param: string $url The url to a feed type to syndicate.

writer( $feedtype, $version=2.0 )   X-Ref
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.

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

getFeedTypes()   X-Ref
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.


_getFeed( $url )   X-Ref
Opens a url in a file pointer

param: string $url The URL to open.

_findFeed( $data, $format='' )   X-Ref
Find out what format a feed is in.


_startElement( $parser, $name, $attributes )   X-Ref
Pas de description

_endElement( $parser, $name )   X-Ref
Pas de description

_charData( $parser, $data )   X-Ref
Pas de description



Généré le : Wed Nov 21 12:27:40 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics