The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

OurCal::Handler::CGI - the default, cgi based handler for OurCal

SYNOPSIS

        my $config    = OurCal::Config->new( file => 'ourcal.conf' );
        my $handler   = OurCal::Handler::CGI->new( config => $config );

METHODS

new <param[s]>

Requires a OurCal::Config object passed in as the config param.

view

Get the name of the view we should be using

date

Returns the date

user

Returns the user as defined by HTTP Basic Auth, cookie or user CGI param.

mode

Get what mode we should be using

header <mime type>

Return what header we need to print out.

Make a link out a OurCal::Span object

param <name>

Get a CGI parma with the given name

need_user

Whether a link need to include a user param or not