Konstrukt::Plugin::guestbook::DBI - Konstrukt guestbook. Backend Driver for the Perl-DBI.
#TODO
Konstrukt guestbook DBI backend driver.
Note that you have to create the table guest. You may turn on the install setting (see "CONFIGURATION" in Konstrukt::Handler) or use the KonstruktBackendInitialization.pl script to accomplish this task.
guest
install
KonstruktBackendInitialization.pl
You have to define those settings to use this backend:
#backend guestbook/backend/DBI/source dbi:mysql:database:host guestbook/backend/DBI/user user guestbook/backend/DBI/pass pass
If no database settings are set the defaults from "CONFIGURATION" in Konstrukt::DBI will be used.
Initialization of this class
Installs the backend (e.g. create tables).
Parameters:
none
Returns the count of the entries in the guestbook.
Returns the requested entries in the database as an arrayreference of hashreferences:
[ {id => <value>, title => <value>, ...}, {id => <value>, title => <value>, ...}, ... ]
$start - The first entry to display. starts with 0
$count - The number of entries to display
Returns one single entry specified by it's ID as an hashreference:
{id => <value>, title => <value>, ...}
$id - The entry's id
Creates a guestbook entry.
$name - Author
$email - Author's e-mail address
$icq - ICQ IM account
$aim - AIM account
$yahoo - Yahoo! IM account
$jabber - Jabber IM account
$msn - MSN IM account
$homepage - The authors website
$text - The entry's text
$host - Client Computer's IP/Hostname
Removes a guestbook entry
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.
Konstrukt::Plugin::guestbook, Konstrukt
To install Konstrukt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Konstrukt
CPAN shell
perl -MCPAN -e shell install Konstrukt
For more information on module installation, please visit the detailed CPAN module installation guide.