CPAN::Testers::WWW::Statistics::Pages - CPAN Testers Statistics pages.


CPAN-Testers-WWW-Statistics documentation  | view source Contained in the CPAN-Testers-WWW-Statistics distribution.

Index


NAME

Top

CPAN::Testers::WWW::Statistics::Pages - CPAN Testers Statistics pages.

SYNOPSIS

Top

  my %hash = { config => 'options' };
  my $obj = CPAN::Testers::WWW::Statistics->new(%hash);
  my $ct = CPAN::Testers::WWW::Statistics::Pages->new(parent => $obj);
  $ct->create();

DESCRIPTION

Top

Using the cpanstats database, this module extracts all the data and generates all the HTML pages needed for the CPAN Testers Statistics website. In addition, also generates the data files in order generate the graphs that appear on the site.

Note that this package should not be called directly, but via its parent as:

  my %hash = { config => 'options' };
  my $obj = CPAN::Testers::WWW::Statistics->new(%hash);
  $obj->make_pages();

INTERFACE

Top

The Constructor

* new

Page creation object. Allows the user to turn or off the progress tracking.

new() takes an option hash as an argument, which may contain 'progress => 1' to turn on the progress tracker and/or 'database => $db' to indicate the path to the database. If no database path is supplied, './cpanstats.db' is used.

Public Methods

* create

Method to facilitate the creation of pages.

Private Methods

* _write_basics

Write out basic pages, all of which are simply built from the templates, without any data processing required.

* _write_index

Writes out the main index page, after all stats have been calculated.

* _write_stats

Extracts data, compiles the pages, generates the graph data files and creates the HTML pages.

* _report_interesting

Generates the interesting stats page

* _report_cpan

Generates the statistic pages that relate specifically to CPAN.

* _writepage

Creates a single HTML page.

* _init_date

Prime all key date variable.

* _tester_name

Returns either the known name of the tester for the given email address, or returns a doctored version of the address for displaying in HTML.

* _ext

Provides the ordinal for dates.

BUGS, PATCHES & FIXES

Top

There are no known bugs at the time of this release. However, if you spot a bug or are experiencing difficulties, that is not explained within the POD documentation, please send bug reports and patches to the RT Queue (see below).

Fixes are dependant upon their severity and my availablity. Should a fix not be forthcoming, please feel free to (politely) remind me.

RT Queue - http://rt.cpan.org/Public/Dist/Display.html?Name=CPAN-Testers-WWW-Statistics

SEE ALSO

Top

CPAN::Testers::Data::Generator, CPAN::WWW::Testers

http://www.cpantesters.org/, http://stats.cpantesters.org/, http://wiki.cpantesters.org/

AUTHOR

Top

  Barbie, <barbie@cpan.org>
  for Miss Barbell Productions <http://www.missbarbell.co.uk>.

COPYRIGHT AND LICENSE

Top


CPAN-Testers-WWW-Statistics documentation  | view source Contained in the CPAN-Testers-WWW-Statistics distribution.