HTML-FormHandler
view release on metacpan or search on metacpan
lib/HTML/FormHandler/Model/Object.pm view on Meta::CPAN
package HTML::FormHandler::Model::Object;
# ABSTRACT: stub for Object model
$HTML::FormHandler::Model::Object::VERSION = '0.40068';
use Moose::Role;
sub update_model {
my $self = shift;
my $item = $self->item;
return unless $item;
foreach my $field ( $self->all_fields ) {
my $name = $field->name;
next unless $item->can($name);
$item->$name( $field->value );
}
}
use namespace::autoclean;
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
HTML::FormHandler::Model::Object - stub for Object model
=head1 VERSION
version 0.40068
=head1 AUTHOR
FormHandler Contributors - see HTML::FormHandler
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2017 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.
=cut
( run in 1.360 second using v1.01-cache-2.11-cpan-97f6503c9c8 )