NAME

Form::Factory::Feature::Functional - A generic feature for actions

VERSION

version 0.022

SYNOPSIS

package MyApp::Action::Foo;
use Form::Factory::Processor;

has_cleaner squeaky => sub {
    my $action = shift;
    # clean up the action input here...
};

has_checker black_or_read => sub {
    my $action = shift;
    # check the action input here... 
};

has_pre_processor remember_cpp => sub {
    my $action = shift;
    # run code just before processing here...
};

has_post_processor industrial_something => sub {
    my $action = shift;
    # run code just after processing here...
};

DESCRIPTION

You probably don't want to use this feature directly. The various helpers imported when you use Form::Factory::Processor actually use this feature for implementation. You probably want to use those instead.

ATTRIBUTES

cleaner_code

An array of subroutines to run during the clean phase.

checker_code

An array of subroutines to run during the check phase.

pre_processor_code

An array of subroutines to run during the pre-process phase.

post_process_code

An array of subroutines to run during the post-process phase.

METHODS

clean

Run all the subroutines in "cleaner_code".

check

Run all the subroutines in "checker_code".

pre_process

Run all the subroutines in "pre_processor_code".

post_process

Run all the subroutines in "post_processor_code".

AUTHOR

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Qubling Software LLC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.