Perlbug::Object::User - User class


Perlbug documentation  | view source Contained in the Perlbug distribution.

Index


NAME

Top

Perlbug::Object::User - User class

DESCRIPTION

Top

Perlbug user class.

For inherited methods, see Perlbug::Object

SYNOPSIS

Top

	use Perlbug::Object::User;

	print Perlbug::Object::User->read('richardf')->format('a');

METHODS

Top

new

Create new User object:

	my $o_usr = Perlbug::Object::User->new();

updatable

Check if current user object/s is/are allowed to be updated

Returns the updatable ids.

    print 'updatable: '.join(', ', $o_obj->updatable(\@userids));

create

Check if name is unique

    my $o_usr = $o_usr->create(\%data);

new_id

return given userid for user

htmlify

html formatter for individual user entries for placement

    my $h_usr = $o_usr->htmlify($h_usr);

update

Ensure the password is encrypted

	$o_usr->update(\%data);

webupdate

Update user data via web interface, accepts relations via param('_opts')

	$oid = $o_usr->webupdate(\%cgidata, $oid);

AUTHOR

Top

Richard Foley perlbug@rfi.net 2000 2001


Perlbug documentation  | view source Contained in the Perlbug distribution.