| OpenFrame-WebApp documentation | view source | Contained in the OpenFrame-WebApp distribution. |
OpenFrame::WebApp::User - users for OpenFrame-WebApp
use OpenFrame::WebApp::User;
my $user = new OpenFrame::WebApp::User()->id('fred2003');
The OpenFrame::WebApp::User class implements a very basic user with an
identifier, and nothing more. This class exists to be sub-classed to suit
your application's needs.
This class was meant to be used with OpenFrame::WebApp::User::Factory.
set/get the user id. chosen over 'login' and 'name' as these can have other menaings & actions associated with them.
Read through the source of this package and the known sub-classes first. The minumum you need to do is this:
use base qw( OpenFrame::WebApp::User );
OpenFrame::WebApp::User->types->{my_type} = __PACKAGE__;
You must register your user type if you want to use the User::Factory.
Steve Purkis <spurkis@epn.nu>
Copyright (c) 2003 Steve Purkis. All rights reserved. Released under the same license as Perl itself.
| OpenFrame-WebApp documentation | view source | Contained in the OpenFrame-WebApp distribution. |