NAME

Egg::Model::FeedPP - XML::FeedPP for Egg::Model.

SYNOPSIS

configuration.

...
MODEL=> [
  .....
  [ FeedPP=> {} ],
  ],

example code.

my $param= $view->params;
my $feed = $e->model('FeedPP')->feed('http://mydomain.name/index.rdf');
$param->{rss_title}= $feed->title;
$param->{rss_link} = $feed->link;
my @items;
for $item ($feed->get_item) {
  push @items, {
    title=> $item->title,
    link => $item->link,
    date => $item->pubDate,
    };
}
$param->{rss_items}= \@items;

DESCRIPTION

It is a module to use XML::FeedPP with MODEL.

The XML::FeedPP object will be usually received by the feed method, and you operate the object directly though you do the method of XML::FeedPP with AUTOLOAD in bind.

* Functions other than relaying XML::FeedPP are not provided now.

CONFIGURATION

'FeedPP' is added to the setting of MODEL.

MODEL => [
  [ FeedPP => {} ],
  ],

* There is no set item of the option now.

METHODS

feed ( [SOURCE] )

XML::FeedPP object is returned.

SOURCE is an argument passed to the constructor of XML::FeedPP.

my $feed= $e->model('FeedPP')->feed('http://domain.name/index.rss');

* Please see the document of XML::FeedPP in detail.

SEE ALSO

XML::FeedPP, Egg::Release,

AUTHOR

Masatoshi Mizuno <lushe@cpan.org>

COPYRIGHT

Copyright (C) 2007 by Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.