The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

CGI::Bus::udata - User Data Store

SYNOPSIS

 use CGI::Bus;
 $s =CGI::Bus->new();
 $s->udata->param

DESCRIPTION

This module is a user data store. Uses filesystem, CGI::Bus::fut, CGI::Bus::file. See CGI::Bus::Base for inherited slots and methods.

SLOTS

-data

User data hash ref. Should be used via param calls.

-dataj

User data joined hash ref. Should be used via paramj calls.

-file

User data file CGI::Bus::file object. Used internally.

-ksplit

Subdirectories size to split key value (username) to, or splitter sub{}. 0 - do not split, default.

-path

Path to users directories. Default is tpath('udata')

METHODS

The most commonly used are param, paramj, store.

keyfile (key, ?filename) -> key file object

Returns CGI::Bus::file object for key (username) given.

keypath (key, ?filename) -> key filesystem path

Filesystem path for key (username) given.

load () -> self

Load current user data with CGI::Bus::file dumpload call. Automatically called within param and paramj calls if needed.

param () -> user data hash ref
param (slot) -> value
param (slot => value,...) -> self

Access to user data hash ref. Automatically calls load if needed.

paramj () -> user data joined hash ref
paramj (slot) -> value

Like param calls, but for joined data of user and groups this user belongs to.

store () -> self
store (slot => value,...) -> self

Store current user data with CGI::Bus::file dumpstore call

uglist () -> [users and groups list]

Generate list of users and groups data exists for. Is used by CGI::Bus::uauth when application user authentication

unload () -> self

Unload current user data, init object buffer to automatically load data if needed

VERSION

01/01/2002 - 31/01/2002

New:

Implemented and Documented.

ToDo:

Review.

AUTHOR

Andrew V Makarow <makarow at mail.com>

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 132:

You forgot a '=back' before '=head2'

Around line 134:

'=item' outside of any '=over'