| 1 | 113 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 113 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | =head1 NAME | ||
| 5 | |||
| 6 | Jifty::Action::AboutMe - Give information about the current user | ||
| 7 | |||
| 8 | =head1 DESCRIPTION | ||
| 9 | |||
| 10 | This action is used for external consumers of Jifty's various APIs to get | ||
| 11 | information about the current user. | ||
| 12 | |||
| 13 | =cut | ||
| 14 | |||
| 15 | package Jifty::Action::AboutMe; | ||
| 16 | 113 | ▶ | use base qw/Jifty::Action/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | =head2 take_action | ||
| 19 | |||
| 20 | Does nothing except set the results to the L<Jifty::CurrentUser> object. | ||
| 21 | |||
| 22 | =cut | ||
| 23 | |||
| 24 | 0 | ▶ | sub take_action { |
|
Subroutine
take_action: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 25 | 0 | my $self = shift; | |
| 26 | |||
| 27 | 0 | $self->result->content(current_user => $self->current_user); | |
| 28 | |||
| 29 | 0 | return 1; | |
| 30 | } | ||
| 31 | |||
| 32 | =head1 SEE ALSO | ||
| 33 | |||
| 34 | L<Jifty::Action>, L<Jifty::CurrentUser> | ||
| 35 | |||
| 36 | =head1 LICENSE | ||
| 37 | |||
| 38 | Jifty is Copyright 2005-2010 Best Practical Solutions, LLC. | ||
| 39 | Jifty is distributed under the same terms as Perl itself. | ||
| 40 | |||
| 41 | =cut | ||
| 42 | |||
| 43 | 113 | 1; | |
| 44 | |||