Konstrukt::Plugin::calendar::DBI - Konstrukt calendar. Backend Driver for the Perl-DBI.
#TODO
Konstrukt calendar DBI backend driver.
#backend calendar/backend/DBI/source dbi:mysql:database:host calendar/backend/DBI/user user calendar/backend/DBI/pass pass
If no database settings are set the defaults from "CONFIGURATION" in Konstrukt::DBI will be used.
Note that you have to create the table calendar_event. You may turn on the install setting (see "CONFIGURATION" in Konstrukt::Handler) or use the KonstruktBackendInitialization.pl script to accomplish this task.
calendar_event
install
KonstruktBackendInitialization.pl
Initialization of this class
Installs the backend (e.g. create tables).
Parameters:
none
Adds a new bookmark.
$year, $month, $day - The date of this entry
$start_hour, $start_minute - The start time
$end_hour, $end_minute - The ending time
$description - What's this event about?
$private - Is this entry only visible to the author?
$author - The entry's author
Returns the requested event as an hash reference with the keys id, year, month, day, start_hour, start_minute, end_hour, end_minute, description, private, author.
$id - The id of the event
Returns the events within a specified month as an array reference of hash references:
[ { id => .., year => .., month => .., day => .., start_hour => .., start_minute => .., end_hour => .., end_minute => .., description => .., author => .., private => .. }, { id => .., ... }, ... ]
$year, $month - The requested month
Returns the events within a specified day as an Array reference of hash references:
$year, $month, $day - The requested day
Returns the events within a specified date range as an Array reference of hash references:
$start_year, $start_month, $start_day - Start date
$end_year , $end_month , $end_day - End date
Returns all events as an Array reference of hash references:
Updates an existing event.
$id - The id of the event, which should be updated
Removes an existing entry.
$id - The id of the entry, which should be removed
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
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.