Form::Factory::Feature - Interface for objects that modify how actions work
version 0.004
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... }
A feature modifies what the form does during processing.
The short name of the feature. This is automatically built from the feature's class name.
The action this feature has been attached to.
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.
This is the Form::Factory::Result::Single recording the success or failure of the parts of this feature.
$feature->feature_info($message);
Record an info feature message.
$feature->feature_warning($message);
Record a warning feature message.
$feature->feature_error($message);
Record an error feature message.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
<hanenkamp@cpan.org>
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.
To install Form::Factory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Form::Factory
CPAN shell
perl -MCPAN -e shell install Form::Factory
For more information on module installation, please visit the detailed CPAN module installation guide.