Simon Cozens > Bryar-2.1 > Bryar::Frontend::Base

Download:
Bryar-2.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  6
Open  3
View/Report Bugs
Module Version: 1.1   Source   Latest Release: Bryar-4.0

NAME ^

Bryar::Frontend::Base - Base class for frontend classes

SYNOPSIS ^

    use base 'Bryar::Frontend::Base';
    sub obtain_url {...}
    sub obtain_path_info {...}
    sub obtain_args {...}
    sub send_data {...}
    sub send_header {...}

DESCRIPTION ^

This abstracts the work of front-ending Bryar, to make real front-end classes tidier.

METHODS ^

You provide these.

obtain_url

Returns the full URL for this page.

obtain_path_info

Returns the path info from the server: the part of the URL after bryar.cgi or whatever.

obtain_params

Returns a hash of CGI parameters.

send_data

Write stuff to the browser. This will only be called once.

send_header

Write stuff to the browser, first.

output

    $self->output

This is a useful method, and should have a useful description.

report_error

    $self->report_error($title, $message)

Used when something went horribly wrong inside Bryar. Spits out the error in as friendly a way as possible to the browser.

LICENSE ^

This module is free software, and may be distributed under the same terms as Perl itself.

AUTHOR ^

Copyright (C) 2003, Simon Cozens simon@kasei.com

SEE ALSO ^

syntax highlighting: