NAME

HTML::FormHandler::Fields - internal role for form and compound fields

VERSION

version 0.35005

SYNOPSIS

A role to implement field attributes, accessors, etc. To be applied to HTML::FormHandler and HTML::FormHandler::Field::Compound.

fields

The field definitions as built from the field_list and the 'has_field' declarations. This provides clear_fields, add_field, remove_last_field, num_fields, has_fields, and set_field_at methods.

field( $full_name )

Return the field objct with the full_name passed. Will return undef if the field is not found, or will die if passed a second parameter.

field_index

Convenience function for use with 'set_field_at'. Pass in 'name' of field (not full_name)

sorted_fields

Calls fields and returns them in sorted order by their "order" value. Non-sorted fields are retrieved with 'fields'.

clear methods

clear_data
clear_fields
clear_error_fields

Dump information

dump - turn verbose flag on to get this output
dump_validated - shorter version

AUTHOR

FormHandler Contributors - see HTML::FormHandler

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Gerda Shank.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.