NAME
Form::Factory::Action::Meta::Class - The meta-class role for form actions
VERSION
version 0.022
SYNOPSIS
package MyApp::Action::Foo;
use Form::Factory::Processor;
DESCRIPTION
All form actions have this role attached to its meta-class.
ATTRIBUTES
features
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.
METHODS
get_controls
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.
get_all_features
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.
SEE ALSO
Form::Factory::Action, Form::Factory::Control, Form::Factory::Feature, Form::Factory::Processor
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.