OpenFrame::WebApp::Segment::User::SessionLoader - a pipeline segment to load


OpenFrame-WebApp documentation Contained in the OpenFrame-WebApp distribution.

Index


Code Index:

NAME

Top

OpenFrame::WebApp::Segment::User::SessionLoader - a pipeline segment to load users from sessions

SYNOPSIS

Top

  # see OpenFrame::WebApp::Segment::User::Loader for usage

  $OpenFrame::WebApp::Segment::User::Session::USER_KEY = 'my_user';

DESCRIPTION

Top

Load a User from the stored Session.

AUTHOR

Top

Steve Purkis <spurkis@epn.nu>

COPYRIGHT

Top

SEE ALSO

Top

OpenFrame::WebApp::User, OpenFrame::WebApp::Segment::User::Loader, OpenFrame::WebApp::Segment::User::Session


OpenFrame-WebApp documentation Contained in the OpenFrame-WebApp distribution.
package OpenFrame::WebApp::Segment::User::SessionLoader;

use strict;
use warnings::register;

use base qw( OpenFrame::WebApp::Segment::User::Loader
	     OpenFrame::WebApp::Segment::User::Session );

our $VERSION = (split(/ /, '$Revision: 1.1 $'))[1];

sub get_user {
    my $self = shift;
    return $self->get_user_from_session;
}

1;

__END__