Update class::dbi data using data::formvalidator or html widget
package Film; use Class::DBI::FromForm; use base 'Class::DBI'; my $results = Data::FormValidator->check( ... ); my $film = Film->retrieve('Fahrenheit 911'); $film->update_from_form($results); my $new_film = Film->create_from_form($results);
Create and update Class::DBI objects from Data::FormValidator or HTML::Widget.
create_from_form
Create a new object.
update_from_form
Update object.
This only applies to HTML::Widget>. Fills the form from a \s-1CDBI\s0 object.
Class::DBI, Class::DBI::FromCGI, Data::FormValidator
Sebastian Riedel, \*(C`[email protected]\*(C'
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.