Apache2::WebApp::Base - Base class implementing common functionality


Apache2-WebApp-Toolkit documentation  | view source Contained in the Apache2-WebApp-Toolkit distribution.

Index


NAME

Top

Apache2::WebApp::Base - Base class implementing common functionality

SYNOPSIS

Top

  use base 'Apache2::WebApp::Base';

DESCRIPTION

Top

Base class module that implements a constructor and provides error reporting functionality for various WebApp Toolkit modules and scripts.

OBJECT METHODS

Top

new

General object constructor.

  my $obj = Apache2::WebApp::Base->new({
      param1 => 'foo',
      param2 => 'bar',
      ...
    });

  print $obj->{param1};     # bar is the value of 'param1'
  print $obj->{param2};     # foo is the value of 'param2'

version

Returns the package version number.

  my $version = $self->version();

error

Output errors/exceptions and exit.

  $self->error($mesg);

SEE ALSO

Top

Apache2::WebApp

AUTHOR

Top

Marc S. Brooks, <mbrooks@cpan.org> http://mbrooks.info

COPYRIGHT

Top


Apache2-WebApp-Toolkit documentation  | view source Contained in the Apache2-WebApp-Toolkit distribution.