/[Grep]/lib/Grep/CurrentUser.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /lib/Grep/CurrentUser.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 67 - (show annotations)
Wed Feb 21 21:39:52 2007 UTC (17 years, 2 months ago) by dpavlin
File size: 498 byte(s)
ups, I forgot to commit CurrentUser which knows how to return user's feeds
1 use strict;
2 use warnings;
3
4 package Grep::CurrentUser;
5 use base qw/Jifty::Plugin::Login::CurrentUser/;
6
7 use Data::Dump qw/dump/;
8
9 =head2 feeds
10
11 my $feeds = Grep::CurrentUser->feeds();
12
13 Return FeedCollection of user's Feeds.
14
15 =cut
16
17 sub feeds {
18 my $self = shift;
19
20 my $feeds = Grep::Model::FeedCollection->new();
21 $feeds->limit( column => 'owner', value => $self->id );
22
23 warn "self = ",dump( $self );
24
25 $self->log->debug("found ", $feeds->count, " feeds for ", $self->id );
26
27 return $feeds;
28 }
29
30 1;

  ViewVC Help
Powered by ViewVC 1.1.26