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.
Initialization of this class
Installs the backend (e.g. create tables).
Parameters:
none
Adds a new bookmark.
Parameters:
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.
Parameters:
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 => .., ... }, ... ]
Parameters:
Returns the events within a specified day as an Array reference of hash references:
[ { id => .., year => .., month => .., day => .., start_hour => .., start_minute => .., end_hour => .., end_minute => .., description => .., author => .., private => .. }, { id => .., ... }, ... ]
Parameters:
Returns the events within a specified date range as an Array reference of hash references:
[ { id => .., year => .., month => .., day => .., start_hour => .., start_minute => .., end_hour => .., end_minute => .., description => .., author => .., private => .. }, { id => .., ... }, ... ]
Parameters:
Returns all events as an Array reference of hash references:
[ { id => .., year => .., month => .., day => .., start_hour => .., start_minute => .., end_hour => .., end_minute => .., description => .., author => .., private => .. }, { id => .., ... }, ... ]
Updates an existing event.
Parameters:
Removes an existing entry.
Parameters:
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.