Solstice::CGI::FormError - A form error object for Solstice.


Solstice documentation Contained in the Solstice distribution.

Index


Code Index:

NAME

Top

Solstice::CGI::FormError - A form error object for Solstice.

SYNOPSIS

Top

  use Solstice::CGI::FormError;

  my $error = new Solstice::CGI::FormError()

DESCRIPTION

Top

This API will be used by Solstice::View::MessageService to display an error message.

Export

No symbols exported.

Methods

new()

Creates a new Solstice::CGI::FormError object.

setFormMessages(\%messages)

Sets any form error message strings.

getFormMessages()

Get the form error message strings.

AUTHOR

Top

Jim Laney, <jlaney@u.washington.edu>

Catalyst Group, <catalyst@u.washington.edu>

VERSION

Top

$Revision$

COPYRIGHT

Top


Solstice documentation Contained in the Solstice distribution.
package Solstice::CGI::FormError;

# $Id$

use 5.006_000;
use strict;
use warnings;

our ($VERSION) = ('$Revision$' =~ /^\$Revision:\s*([\d.]*)/);

sub new {
    my $obj = shift;

    my $self = bless {}, $obj;

    return $self;
}


sub setFormMessages {
    my $self = shift;
    my ($messages) = @_;

    $self->{_form_messages} = $messages;
}


sub getFormMessages {
    my $self = shift;

    return $self->{_form_messages};
}


1;
__END__