The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Form::Factory::Action::Meta::Class - The meta-class for form actions

VERSION

version 0.012

SYNOPSIS

  package MyApp::Action::Foo;
our $VERSION = '0.012';


  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 ot 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 teh form. This includes all inherited features 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

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.