| Form::Factory::Action::Meta::Class - The meta-class for form actions |
Form::Factory::Action::Meta::Class - The meta-class for form actions
version 0.014
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 ot 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 the Form::Factory::Action::Meta::Attribute::Control manpage.
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 teh form. This includes all inherited features as well. These are returned in the same format as the features attribute.
the Form::Factory::Action manpage, the Form::Factory::Control manpage, the Form::Factory::Feature manpage, the Form::Factory::Processor manpage
Andrew Sterling Hanenkamp <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.
| Form::Factory::Action::Meta::Class - The meta-class for form actions |