HTML::Widget::DBIC 0.01
Sponsored Links
HTML::Widget::DBIC 0.01 Ranking & Summary
File size:
0.019 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1020
Date added:
2007-01-11
Publisher:
Zbigniew Lukasiak
HTML::Widget::DBIC 0.01 description
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();
METHODS
create_from_config
Method 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 = [ { foreign_class => Dvd, widget_element => [ Select, multiple => 1 ], name => dvds, label => Dvds, bridge_rel => dvdtags }, { widget_element => [ Textarea, rows => 5, cols => 60 ], constraints => [ { max => 255, constraint => Length, message => Should be shorten than 255 characters }, { constraint => All, message => The field is required } ], name => name, label => Name }, { primary_key => 1, name => id, label => Id } ];
process
Like HTML::Widget->process but produces HTML::Widget::Result::DBIC - with extra info for saving to database.
save_to_db
HTML::Widget::DBIC::Result method to save the data from widget to the database
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();
METHODS
create_from_config
Method 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 = [ { foreign_class => Dvd, widget_element => [ Select, multiple => 1 ], name => dvds, label => Dvds, bridge_rel => dvdtags }, { widget_element => [ Textarea, rows => 5, cols => 60 ], constraints => [ { max => 255, constraint => Length, message => Should be shorten than 255 characters }, { constraint => All, message => The field is required } ], name => name, label => Name }, { primary_key => 1, name => id, label => Id } ];
process
Like HTML::Widget->process but produces HTML::Widget::Result::DBIC - with extra info for saving to database.
save_to_db
HTML::Widget::DBIC::Result method to save the data from widget to the database
HTML::Widget::DBIC 0.01 Screenshot
HTML::Widget::DBIC 0.01 Keywords
HTML
DBIC
DBIx
DBIC 0.01
Class
widget
name
Config
subclass
save
process
HTML::Widget::DBIC
HTMLWidgetDBIC
HTML::Widget::DBIC 0.01
Libraries
Programming
Bookmark HTML::Widget::DBIC 0.01
HTML::Widget::DBIC 0.01 Copyright
WareSeeker periodically updates pricing and software information of HTML::Widget::DBIC 0.01 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of HTML::Widget::DBIC 0.01 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
HTML::Widget is a Perl module with HTML Widget And Validation Framework. Free Download
HTML::Widget::SideBar can creates the HTML sidebar for a web page. Free Download
HTML::Tiny is a lightweight, dependency free HTML/XML generator. Free Download
HEBCI is a technique that allows a Web form handler to transparently detect the character set with which its data was encoded. Free Download
DBIx::HTML::ClientDB is a Perl module to convert sql into a client-side db with keyed access. Free Download
DBIx::HTMLinterface is a class for creating a CGI interface to a database. Free Download
dtRdr::Config is a Perl module with Factory class for configuration system. Free Download
HTML::WikiConverter::Dialects is a Perl module which contains a tutorial on how to add a dialect. Free Download
Latest Software
Popular Software
Favourite Software