WebApp/Segment/User/SessionLoader.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« WebApp/Segment/User/EnvLoader.pm ↑ Summary WebApp/Session/FileCache.pm »
1 =head1 NAME
2  
3 OpenFrame::WebApp::Segment::User::SessionLoader - a pipeline segment to load
4 users from sessions
5  
6 =head1 SYNOPSIS
7  
8 # see OpenFrame::WebApp::Segment::User::Loader for usage
9  
10 $OpenFrame::WebApp::Segment::User::Session::USER_KEY = 'my_user';
11  
12 =cut
13  
14 package OpenFrame::WebApp::Segment::User::SessionLoader;
15  
16 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 ▶use warnings::register;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 1 ▶use base qw( OpenFrame::WebApp::Segment::User::Loader
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 OpenFrame::WebApp::Segment::User::Session );
21  
22 1 our $VERSION = (split(/ /, '$Revision: 1.1 $'))[1];
23  
24 1 ▶sub get_user {
Subroutine get_user: called CC=1 SCAR=0.0
Pod documented
25 1 my $self = shift;
26 1 return $self->get_user_from_session;
27 }
28  
29 1 1;
30  
31 __END__
« WebApp/Segment/User/EnvLoader.pm ↑ Summary WebApp/Session/FileCache.pm »