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

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

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Source  

NAME ^

Konstrukt::Plugin::browserstats::DBI - Browser statistics. DBI backend

SYNOPSIS ^

        #TODO

DESCRIPTION ^

Browser statistics. DBI backend

CONFIGURATION ^

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

You have to define those settings to use this backend:

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

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

METHODS ^

init

Initialization of this class

Parameters: none

install

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

Parameters:

none

hit

Adds a new browserstat entry.

Parameters:

get

Returns the statistics as an array reference of hash references: [ { class => <value>, date => <value>, count => <value> }, ... ]

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