root/branches/feature-server/plagger/lib/Plagger/Plugin/Aggregator/Null.pm

Revision 937 (checked in by miyagawa, 4 years ago)

merge from trunk

Line 
1 package Plagger::Plugin::Aggregator::Null;
2 use strict;
3 use base qw( Plagger::Plugin );
4
5 sub register {
6     my($self, $context) = @_;
7     $context->register_hook(
8         $self,
9         'customfeed.handle'  => \&aggregate,
10     );
11 }
12
13 sub aggregate {
14     my($self, $context, $args) = @_;
15     $context->update->add($args->{feed});
16 }
17
18 1;
19
20 __END__
21
22 =head1 NAME
23
24 Plagger::Plugin::Aggregator::Null - Aggregator that doesn't do anything
25
26 =head1 SYNOPSIS
27
28   - module: Aggregator::Null
29
30 =head1 DESCRIPTION
31
32 This plugin implements Plagger Aggregator but it doesn't do anything
33 useful. It could be only useful when you want to just pass subscribed
34 feed to Publish/Notify plugins, or inisde test scripts.
35
36 =head1 AUTHOR
37
38 Tatsuhiko Miyagawa
39
40 =head1 SEE ALSO
41
42 L<Plagger>
43
44 =cut
Note: See TracBrowser for help on using the browser.