NAME

Perlbug::Web - Web interface to perlbug database.

DESCRIPTION

Methods for web access to perlbug database via Perlbug module.

SYNOPSIS

my $o_web = Perlbug::Web->new;

print $o_web->header;

print $o_web->request('help');

print $o_web->footer;

METHODS

new

Create new Perlbug::Web object.

my $web = Perlbug::Web->new;
setup

Setup Perlbug::Web

$o_perlbug->setup($cgi);
check_user

Access authentication via http, we just prime ourselves with data from the db as well.

Should really be integrated as a database lookup via Apache, but we do not know this will be the webserver?

Return consistent header.

print $web->header;
switch

Parse switch

request

Handle all web requests

overview

Wrapper for doo method

graph

Display pie or mixed graph for category of bugs etc., mixed to come.

nid

Wrapper for don note access

tid

Wrapper for dot test id access

pid

Wrapper for dop patch id access

bid

Wrapper for dob bugid access

patches

Wrapper for dop patchid access

uid

Wrapper for dou user/administrator access

hist

History mechanism for bugs and users.

Move formatting to Format::history !!!

headers

Headers for all objects (m, n, p, t) by id

Headers for message

pheader

Headers for patches

nheader

Headers for notes

theader

Headers for tests

bidmids

Wrapper for bugid and messageid access

mids

Wrapper for retrieve by messageid access

delete

Wrapper for delete access

update

Wrapper for update access

nocc

Wrapper for nocc update access

sql_query

Open field sql query processor

web_query

Form bug search web query results

current_buttons

Returns array of relevant buttons by context key

my @buttons = $o_web->current_buttons('search update reset', scalar(@uids), [$colspan]);

Return consistent footer.

print $web->footer;
administrators

List of administrators

spec

Returns specifications for the Perlbug system.

help

Web based help menu for perlbug.

print $web->help;
administration_failure

Deal with a failed administration attempt

my $i_ok = $self->administration_failure($bid, $user, $commands);
todo

To do list, may be appended to

adminfaq

adminFAQ

Search form into result

with chosen params as defaults...
case

Handle case sensitivity from web search form.

format_web_query

Produce SQL query for bug search from CGI query.

my $query = $web->format_web_query;
wildcard

Convert '*' into '%' for sqlquery

my $string = $self->wildcard('5.*');
web_update

For bugs and users

tenify

Create range of links to split (by tens or more) bugids from web query result.

$self->tenify(\@_bids, 7); # in chunks of 7
range

Store and retrieve range of bugs, swap between using filesystem and database?

$id = $o_web->range($id, $data); 		# get and set
comment

Return string as html comment

my $commented = $o_web->comment(qq|<input type="text" name="dont_know" value="vaguer_still">|);
hide

AUTHOR

Richard Foley perlbug@rfi.net Oct 1999