Christopher H. Laco > Mango-0.01000_13 > Mango::Catalyst::Plugin::Authentication::CachedUser

Download:
Mango-0.01000_13.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Mango::Catalyst::Plugin::Authentication::CachedUser - Cached Custom Catalyst Authentication User

SYNOPSIS ^

    use Catalyst qw/
        -Debug
        ConfigLoader
        +Mango::Catalyst::Plugin::Authentication
        Static::Simple
    /;
    
    my $user = $c->user;
    print $user->cart->count;

DESCRIPTION ^

Mango::Catalyst::Plugin::Authentication::CachedUser is a custom authentication user that has been restored from the current users session.

METHODS ^

roles

Returns a list containing the names of all of the roles the current user belongs to. This method is used by Catalyst::Plugin::Authorization::Roles.

These roles are loaded from the current users session and cached locally.

See Catalyst::Plugin::Authentication for the usage of this method.

supported_features

Returns an anonymous hash containing the following options:

    roles => 1,
    profiles => 1,
    carts => 1

SEE ALSO ^

Catalyst::Plugin::Authentication, Mango::User, Mango::Profile, Mango::Cart, Mango::Catalyst::Plugin::Authentication::Store Mango::Catalyst::Plugin::Authentication::User Mango::Catalyst::Plugin::Authentication::CachedUser Mango::Catalyst::Plugin::Authentication::AnonymousUser

AUTHOR ^

    Christopher H. Laco
    CPAN ID: CLACO
    claco@chrislaco.com
    http://today.icantfocus.com/blog/
syntax highlighting: