Form::Factory::Action::Meta::Class - The meta-class role for form actions
version 0.022
package MyApp::Action::Foo; use Form::Factory::Processor;
All form actions have this role attached to its meta-class.
This is a hash of features. The keys are the short name of the feature to attach and the value is a hash of options to pass to the feature's constructor on instantiation.
my @attributes = $action->meta->get_controls(@names);
Returns all the controls for this action. This includes controls inherited from parent classes as well. This returns a list of attributes which do Form::Factory::Action::Meta::Attribute::Control.
You may pass a list of control names if you only want a subset of the available controls. If no list is given, all controls are returned.
my $features = $action->meta->get_all_features;
Returns all the feature specs for the form. This includes all inherited features and features configured in implemented roles as well. These are returned in the same format as the "features" attribute.
Form::Factory::Action, Form::Factory::Control, Form::Factory::Feature, Form::Factory::Processor
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
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.
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.