FromForm(3pm)

πŸ“¦
version 0.04 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

πŸ’– FromForm(3pm) β€” aka Class::DBI::FromForm πŸ’–

okay bestie, welcome to the page for Class::DBI::FromForm, which is the one that lets you update your Class::DBI data using Data::FormValidator or HTML Widget. yes, it's giving "forms but make it database." it's giving main character energy for form handling. let's go πŸ¦‹


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

like, literally that's it. retrieve your thing, update it from the form, or make a whole new one from the form. slay πŸ’…


🌸 DESCRIPTION 🌸

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

that's the whole vibe. objects go in, objects come out, forms are involved. obsessed πŸŽ€

🧚 METHODS 🧚

  • create_from_form

Create a new object. new baby object, freshly born, straight from the form 🐣

  • update_from_form

Update object. glow-up time, bestie ✨

🫢 fill_widget <widget>

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

lowkey note: yes, that > is in the original, no I'm not touching it, it's part of the lore πŸ’€

🌈 SEE ALSO 🌈

  • Class::DBI
  • Class::DBI::FromCGI
  • Data::FormValidator

go read those too, they're all in the same friend group 🫢


πŸ‘‘ 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.


and that's the whole page, bestie! this was FromForm(3pm), shipped with perl v5.32.0, dated 2021-01-05. periodt. πŸ’…πŸŽ€βœ¨

πŸ“¦ where this page comes from