X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FConstants.pm;h=b70a06ceb79f7e10bd8e547ddb357d83451ad902;hb=213b0e139beb727fa7ef1ba757b41a00cf8437f7;hp=b79704fbaa0d66a8e073ca63c344f97a0f471b2b;hpb=ef3da5818c452a331e863d30efc41f5b65d0f624;p=maypole.git diff --git a/lib/Maypole/Constants.pm b/lib/Maypole/Constants.pm index b79704f..b70a06c 100644 --- a/lib/Maypole/Constants.pm +++ b/lib/Maypole/Constants.pm @@ -1,25 +1,49 @@ package Maypole::Constants; +use strict; use base 'Exporter'; use constant OK => 0; use constant DECLINED => -1; -use constant ERROR => -1; +use constant ERROR => 500; our @EXPORT = qw(OK DECLINED ERROR); +our $VERSION = "1." . sprintf "%04d", q$Rev: 483 $ =~ /: (\d+)/; + +1; =head1 NAME Maypole::Constants - Maypole predefined constants +=head1 SYNOPSIS + + use Maypole::Constants; + + sub authenticate { + if (valid_user()) { + return OK; + } else { + return DECLINED + } + } + =head1 DESCRIPTION This class defines constants for use with Maypole +=head2 CONSTANTS + +=head3 OK + +=head3 DECLINED + +=head3 ERROR + =head1 SEE ALSO L =head1 MAINTAINER -Sebastian Riedel, c +Aaron Trevena, c =head1 AUTHOR @@ -30,4 +54,3 @@ Simon Cozens, C You may distribute this code under the same terms as Perl itself. =cut -1;