X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FConstants.pm;h=09e7d4b3fa1f1fcc1a91b1c94d61a4e9a92a245f;hb=99f5d5a04c67379b66b1a1cea4f048d3003d5581;hp=69178502bbdccf7a824d103805a2cb3c0aee7275;hpb=72ebd12372713c17bb79d6510f3da7c7b4561338;p=maypole.git diff --git a/lib/Maypole/Constants.pm b/lib/Maypole/Constants.pm index 6917850..09e7d4b 100644 --- a/lib/Maypole/Constants.pm +++ b/lib/Maypole/Constants.pm @@ -1,4 +1,5 @@ package Maypole::Constants; +use strict; use base 'Exporter'; use constant OK => 0; use constant DECLINED => -1; @@ -6,21 +7,43 @@ use constant ERROR => -1; our @EXPORT = qw(OK DECLINED ERROR); our $VERSION = "1." . sprintf "%04d", q$Rev$ =~ /: (\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 @@ -31,4 +54,3 @@ Simon Cozens, C You may distribute this code under the same terms as Perl itself. =cut -1;