Change new() function in plugins to avoid having to call _prepare_parameters() in...
[videosite.git] / videosite / NullGetter.pm
1 # (c) 2007 by Ralf Ertzinger <ralf@camperquake.de>
2 # licensed under GNU GPL v2
3 #
4 #
5 # A getter which does not do anything useful.
6
7 package videosite::NullGetter;
8
9 use videosite::GetterBase;
10 @ISA = qw(videosite::GetterBase);
11
12 use strict;
13 use LWP::Simple qw(!get);
14
15 sub new {
16     my $class = shift;
17     my $self = $class->SUPER::new(
18         NAME => 'nullgetter',
19     );
20
21     return bless($self, $class);
22 }
23
24 sub get {
25
26     return 1;
27 }