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

NAME

Konstrukt::Plugin::usermanagement::personal::DBI - Konstrukt personal userdata. DBI Backend Driver

SYNOPSIS

        #TODO

DESCRIPTION

The DBI backend for the personal userdata.

CONFIGURATION

        #backend
        usermanagement/personal/backend/DBI/source  dbi:mysql:database:host
        usermanagement/personal/backend/DBI/user    username
        usermanagement/personal/backend/DBI/pass    password

If no database settings are set the defaults from "CONFIGURATION" in Konstrukt::DBI will be used.

You have to create the database table user_personal to use this plugin. You may turn on the install setting (see "CONFIGURATION" in Konstrukt::Handler) or use the KonstruktBackendInitialization.pl script to accomplish this task.

METHODS

init

Initialization of this class

install

Installs the backend (e.g. create tables).

Parameters:

none

add_user

Creates a row for a new user with the specified ID.

Parameters:

  • $uid - The user id

delete_user

Deletes the personal data entry for a specified user.

Parameters:

  • $uid - The user id

get_data

Returns the user data as an hash ref, if uid exists: { firstname => .., lastname => .., nick => .., sex => .., birth_year => .., birth_month => .., birth_day, email => .., jabber => .., icq => .., aim => .., msn => .., yahoo => .., homepage => .. } Returns an empty hashref if the uid doesn't exist.

Parameters:

  • $uid - The user id

set_data

Sets the data specified in the passed hash in the database.

Parameters:

  • $uid - The user id

  • $data - Hashreference with the data that should be set: { firstname => .., nick => .., ... }

AUTHOR

Copyright 2006 Thomas Wittek (mail at gedankenkonstrukt dot de). All rights reserved.

This document is free software. It is distributed under the same terms as Perl itself.

SEE ALSO

Konstrukt::Plugin::usermanagement::personal, Konstrukt::Plugin::usermanagement, Konstrukt