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

NAME

Form::Factory::Feature - Interface for objects that modify how actions work

VERSION

version 0.004

SYNOPSIS

  package MyApp::Feature::Foo;
our $VERSION = '0.004';


  use Moose;

  with qw( Form::Factory::Feature );

  sub clean {
      my $self = shift;

      # clean the input...
  }

  sub check {
      my $self = shift;

      # check the input...
  }

  sub pre_process {
      my $self = shift;

      # run before the process...
  }

  sub post_process {
      my $self = shift;

      # run after the process...
  }

DESCRIPTION

A feature modifies what the form does during processing.

ATTRIBUTES

name

The short name of the feature. This is automatically built from the feature's class name.

action

The action this feature has been attached to.

message

This is a custom error message for failures. This message is used instead of the one the feature specifies when "feature_info", "feature_warning", and "feature_error" are called.

This is inadequate. It should be fixed in the future.

result

This is the Form::Factory::Result::Single recording the success or failure of the parts of this feature.

METHODS

feature_info

  $feature->feature_info($message);

Record an info feature message.

feature_warning

  $feature->feature_warning($message);

Record a warning feature message.

feature_error

  $feature->feature_error($message);

Record an error feature message.

AUTHOR

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2009 Qubling Software LLC.

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.