<<

NAME

Konstrukt::Plugin::calendar::DBI - Konstrukt calendar. Backend Driver for the Perl-DBI.

SYNOPSIS

        #TODO

DESCRIPTION

Konstrukt calendar DBI backend driver.

CONFIGURATION

        #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.

METHODS

init

Initialization of this class

install

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

Parameters:

none

add_entry

Adds a new bookmark.

Parameters:

get_entry

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:

get_month

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:

get_day

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:

get_range

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:

get_all

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 => .., ... },
          ...
        ]

update_entry

Updates an existing event.

Parameters:

delete_entry

Removes an existing entry.

Parameters:

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

<<