|ttl||Time To Live, in seconds, for each feed. If a feed is older than this value, it is refreshed from its source. Defaults to 3600 seconds, 1 hour.|
|feeds||An arrayref of hashes containing feeds to preload. The hash is required to contain a key called uri or location, specifing the URL of the feed to load. It may optinally contain name or title, if you wish to override the feeds own title.|
Creates a new instance. Called for you by Catalyst. If your config file contains invalid feeds the feed will be refetched when the feed content is accessed. This allows your Catalyst app to start even in the case of an external outage of an RSS feed.
Registers a feed with the Model. If $uri_of_feed points to a feed, the feed is added under its own name. If $$uri_of_feed points to an HTML or XHTML document containing <link> tags pointing to feeds, all feeds are added by using their URIs as their names.
Returns a list of the names of the feeds that were added.
Warns if the $uri_of_feeds doesnt contain a feed or links to feeds, or it cannot be fetched.
register($name, CW$uri_of_feed)Registers a feed with the Model. If $name is already registered, the old feed at $name is forgotten and replaced with the new feed at $uri_of_feed. The title of the feed is replaced with $name.
Warns if $uri_of_feed isnt an XML feed (or doesnt contain a link to one).
Throws an exception if the $uri_of_feed links to multiple feeds.
Returns the names of all registered feeds.
Returns a list of all registered feeds. The elements are XML::Feed objects.
Returns the XML::Feed object that corresponds to $name. Throws an exception if there is no feed thats named $name.
Forces the feed $name to be refreshed from the source. If $name is omitted, refreshes all registered feeds.
CW%s does not reference any feedsThe URI you passed to register was not a feed, or did not link to any feeds.
CW%s points to too many feedsThe URI you passed to register referenced more than one feed. If you want to register all the feeds, use the one argument form of register instead of the two argument form.
No feed named CW%sThe feed that you requested does not exist. Try registering it first.
Jonathan Rockway, <jrockway at cpan.org>
Please report any bugs or feature requests to bug-catalyst-model-xml-feed at rt.cpan.org, or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Catalyst-Model-XML-Feed>. I will be notified, and then youll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
o AnnoCPAN: Annotated CPAN documentation o CPAN Ratings o RT: CPANs request tracker
o Search CPAN
Copyright 2006 Jonathan Rockway, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|perl v5.20.3||CATALYST::MODEL::XML::FEED (3)||2011-04-28|