Thomas Wittek > Konstrukt > Konstrukt::Plugin::wiki::backend::image::DBI

Download:
konstrukt/Konstrukt-0.5-beta13.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

Konstrukt::Plugin::wiki::backend::image::DBI - Image backend driver for storage inside a database that can be accessed through DBI.

SYNOPSIS ^

        my $image_backend = use_plugin 'Konstrukt::Plugin::wiki::backend::image::DBI' or die;
        $image_backend->do_stuff(); #see the methods description

DESCRIPTION ^

This image backend implements the storage in a database that will be accessed through perl DBI.

Actually this one was implemented using a MySQL database. But as the queries don't use special MySQL-functions it is very likely that it will run on other databases without modification.

This one is very similar to Konstrukt::Plugin::wiki::backend::file::DBI but adds some image-specific funtionality.

CONFIGURATION ^

You have to create the tables wiki_image, wiki_image_content and wiki_image_description, which will be used to store the data. You may turn on the install setting (see "CONFIGURATION" in Konstrukt::Handler) or use the KonstruktBackendInitialization.pl script to accomplish this task.

Furtheron you have to define those settings to use this backend:

        #backend
        wiki/backend_type       DBI
        wiki/backend/DBI/source dbi:mysql:database:host
        wiki/backend/DBI/user   user
        wiki/backend/DBI/pass   pass

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

METHODS ^

new

init

Initialization of this class. Loads the settings.

install

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

Parameters:

none

exists

See "exists" in Konstrukt::Plugin::wiki::backend::image

revision

See "revison" in Konstrukt::Plugin::wiki::backend::image

revisions

See "revisons" in Konstrukt::Plugin::wiki::backend::image

get_info

See "get_info" in Konstrukt::Plugin::wiki::backend::image

get_content

See "get_content" in Konstrukt::Plugin::wiki::backend::image

store

See "store" in Konstrukt::Plugin::wiki::backend::image

restore

See "restore_description" in Konstrukt::Plugin::wiki::backend::image

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, Konstrukt::Plugin, Konstrukt