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


Form-Factory documentation  | view source Contained in the Form-Factory distribution.

Index


NAME

Top

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

VERSION

Top

version 0.020

SYNOPSIS

Top

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

DESCRIPTION

Top

All form actions have this role attached to its meta-class.

ATTRIBUTES

Top

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

Top

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

Top

Form::Factory::Action, Form::Factory::Control, Form::Factory::Feature, Form::Factory::Processor

AUTHOR

Top

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

Top


Form-Factory documentation  | view source Contained in the Form-Factory distribution.