Konstrukt::Plugin::browserstats::DBI - Browser statistics. DBI backend
#TODO
Browser statistics. DBI backend
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.
browserstats
install
KonstruktBackendInitialization.pl
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.
Initialization of this class
Parameters: none
Installs the backend (e.g. create tables).
Parameters:
none
Adds a new browserstat entry.
$class - The class of the browser
$aggregate - The range over which the hits should be aggregated. May be all, year, month and day.
Returns the statistics as an array reference of hash references: [ { class => <value>, date => <value>, count => <value> }, ... ]
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.
Konstrukt::Plugin::browserstats, Konstrukt
To install Konstrukt, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Konstrukt
CPAN shell
perl -MCPAN -e shell install Konstrukt
For more information on module installation, please visit the detailed CPAN module installation guide.