HTML::Widget::DBICHTML::Widget::DBIC is a subclass of HTML::Widgets for dealing with DBIx::Class. | |
Download |
HTML::Widget::DBIC Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Zbigniew Lukasiak
- Publisher web site:
- http://search.cpan.org/~zby/Catalyst-Example-InstantCRUD-v0.0.18/lib/Catalyst/Example/InstantCRUD.pm
HTML::Widget::DBIC Tags
HTML::Widget::DBIC Description
HTML::Widget::DBIC is a subclass of HTML::Widgets for dealing with DBIx::Class. HTML::Widget::DBIC is a subclass of HTML::Widgets for dealing with DBIx::Class.SYNOPSIS # create a widget coupled with a db record my $widget = HTML::Widget::DBIC->create_from_config( $config, $resultset, $item ); # process a query my $result = $widget->process ( $query ); # and save the values from the query to the database $result->save_to_db();METHODScreate_from_configMethod to create widget. The parameters are configuration for all the widget fields, a DBIC Resultset and optionally a DBIC record (item) - to fill in the current values in the form and as the target for saving the data, if not present when saving a new record will be created.The config is a reference to a list of configuration for particular fields. Like: my $config = , 'name' => 'dvds', 'label' => 'Dvds', 'bridge_rel' => 'dvdtags' }, { 'widget_element' => , 'constraints' => , 'name' => 'name', 'label' => 'Name' }, { 'primary_key' => 1, 'name' => 'id', 'label' => 'Id' } ];processLike HTML::Widget->process but produces HTML::Widget::Result::DBIC - with extra info for saving to database.save_to_dbHTML::Widget::DBIC::Result method to save the data from widget to the database Requirements: · Perl
HTML::Widget::DBIC Related Software