Thomas Wittek > Konstrukt-0.5-beta13 > Konstrukt::Plugin::tags::DBI

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

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

Konstrukt::Plugin::tags::DBI - Tagging DBI backend

SYNOPSIS ^

        #TODO

DESCRIPTION ^

Tagging DBI Backend driver.

CONFIGURATION ^

Note that you have to create the table tag. You may turn on the install setting (see "CONFIGURATION" in Konstrukt::Handler) or use the KonstruktBackendInitialization.pl script to accomplish this task.

You may define the source of this backend:

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

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

LIMITATIONS ^

The current data model has a max length for the tag title of 255 chars, for the plugin name of 64 chars and for the entry identifier of 128 chars. The identifier is a string, not a number (but of course can also contain numbers).

METHODS ^

init

Initialization of this class

install

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

Parameters:

none

set

Sets the tags for a specified entry.

Parameters:

get

Implementation of the get method of the plugin.

get_entries

Returns the entries, that match a specified tag query string and optionally belong to a specified plugin.

If a plugin is specified the identifiers (strings or numbers) of the entries will be returned in an arrayref:

        [ 'someentry', 'someother', 23, 42, ... ]

Otherwise the entries will be returned as a reference to an array containing hash references with the identifier and the plugin for each entry:

        [
                { entry => 'someentry', plugin => 'someplugin' },
                ...
        ]

Parameters:

delete

Implementation of "delete" in Konstrukt::Plugin::tags.

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

syntax highlighting: