Marcus Ramberg > Class-DBI-FromForm-0.04 > Class::DBI::FromForm

Download:
Class-DBI-FromForm-0.04.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 0.04   Source  

NAME ^

Class::DBI::FromForm - Update Class::DBI data using Data::FormValidator or HTML Widget

SYNOPSIS ^

  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);

DESCRIPTION ^

Create and update Class::DBI objects from Data::FormValidator or HTML::Widget.

METHODS

create_from_form

Create a new object.

update_from_form

Update object.

fill_widget <widget> ^

This only applies to HTML::Widget>. Fills the form from a CDBI object.

SEE ALSO ^

Class::DBI, Class::DBI::FromCGI, Data::FormValidator

AUTHOR ^

Sebastian Riedel, sri@oook.de

LICENSE ^

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.

syntax highlighting: