Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.184.230 Times

Class::DBI::FormBuilder 0.481

  Date Added: April 18, 2010  |  Visits: 867

Class::DBI::FormBuilder

Report Broken Link
Printer Friendly Version


Product Homepage
Download (88 downloads)



Class::DBI::FormBuilder is a Perl module with Class::DBI/CGI::FormBuilder integration. SYNOPSIS package Film; use strict; use warnings; use base Class::DBI; use Class::DBI::FormBuilder; # for indented output: # use Class::DBI::FormBuilder PrettyPrint => ALL; # POST all forms to server Film->form_builder_defaults->{method} = post; # customise how some fields are built: # actor is a has_a field, and the # related table has 1000s of rows, so we dont want the default popup widget, # we just want to show the current value Film->form_builder_defaults->{process_fields}->{actor} = VALUE; # trailer stores an mpeg file, but CDBI::FB cannot automatically detect # file upload fields, so need to tell it: Film->form_builder_defaults->{process_fields}->{trailer} = FILE; # has_a fields will be automatically set to required. Additional fields can be specified: Film->form_builder_defaults->{required} = qw( foo bar ); # In a nearby piece of code... my $film = Film->retrieve( $id ); print $film->as_form( params => $q )->render; # or $r if mod_perl # For a search app: my $search_form = Film->search_form; # as_form plus a few tweaks # A fairly complete mini-app: my $form = Film->as_form( params => $q ); # or $r if mod_perl if ( $form->submitted and $form->validate ) { # whatever you need: my $obj = Film->create_from_form( $form ); my $obj = Film->update_from_form( $form ); my $obj = Film->update_or_create_from_form( $form ); my $obj = Film->retrieve_from_form( $form ); my $iter = Film->search_from_form( $form ); my $iter = Film->search_like_from_form( $form ); my $iter = Film->search_where_from_form( $form ); my $obj = Film->find_or_create_from_form( $form ); my $obj = Film->retrieve_or_create_from_form( $form ); print $form->confirm; } else { print $form->render; } # See CGI::FormBuilder docs and website for lots more information. Errata: use of column name/accessor/mutator is currently broken if your column accessors/mutators are different from the column name. The documentation is also broken w.r.t. this. This module creates a CGI::FormBuilder form from a CDBI class or object. If from an object, it populates the form fields with the objects values. Column metadata and CDBI relationships are analyzed and the fields of the form are modified accordingly. For instance, MySQL enum and set columns are configured as select, radiobutton or checkbox widgets as appropriate, and appropriate widgets are built for has_a, has_many and might_have relationships. Further relationships can be added by subclassing. has_a columns are set as required fields in create/update forms..

Requirements: No special requirements
Platforms: Linux
Keyword: Cdbi Cgi Classdbiformbuilder Dbi Fields Form Formbuilder Libraries Module Obj Perl Perl Module Programming Search
Users rating: 0/10

License: Freeware Size: 46.08 KB
USER REVIEWS
More Reviews or Write Review


CLASS::DBI::FORMBUILDER RELATED
Network & Internet  -  cgi-postin 1.19
cgi-postin utility processes data generated from a World-Wide Web form. cgi-postin is a standalone processor that may be run easily from sh, perl, or Tcl scripts. Important Note: I recommend this tool only when implementing CGIs as shell...
6.14 KB  
Libraries  -  CGI::Application::Plugin::ValidateRM 2.1
CGI::Application::Plugin::ValidateRM is a Perl module to help validate CGI::Application run modes using Data::FormValidator. SYNOPSIS use CGI::Application::Plugin::ValidateRM; my $results = $self->check_rm(form_display,_form_profile) ||...
10.24 KB  
Libraries  -  HTML::FormHighlight 0.03
HTML::FormHighlight Perl module can help you to highlights fields in an HTML form. SYNOPSIS use HTML::FormHighlight; my $h = new HTML::FormHighlight; print $h->highlight( scalarref => $form, fields => [ A, B, C ], ); print...
5.12 KB  
Libraries  -  DBI 1.57
DBI is a database independent interface for Perl. SYNOPSIS use DBI; @driver_names = DBI->available_drivers; %drivers = DBI->installed_drivers; @data_sources = DBI->data_sources($driver_name, %attr); $dbh = DBI->connect($data_source,...
481.28 KB  
Calendar  -  CGI Calendar 3.0
CGI Calendar is an appointment/event calendar written in Perl. It can run on any system that has a web server supporting CGI and Perl (this includes most Unix, NT, Macintosh, Linux, FreeBSD, and Solaris systems, among many others). It is very...
 
Network & Internet  -  WWW-Form 1.17
WWW::Form is a module for handling the world-wide-web form process. The project enables generating forms, filling them from user input, verifying them, and re-displaying them in case something is wrong..
21.5 KB  
Web Authoring  -  life-insurance-policy-nichemodulator 1.00
Niche Modulator is a one time install, powerful, cgi script that enables you to generate on the fly headings, sub headings, site welcome messages, subscription form headings and more based on exactly the same search terms used by your site visitor...
673 KB  
Libraries  -  Search::Namazu 0.96
Search::Namazu is a Namazu library module for perl. SYNOPSIS use Search::Namazu; @hlists = Search::Namazu::Search(index => /usr/local/namazu/index, query => foo); foreach my $hlist (@hlists) { print ($hlist->score, $hlist->uri,...
39.94 KB  
Modules  -  User Reference Access 6.x-1.1
This module works with CCK userreference fields and the node_access module to add additional grants to nodes.To enable userref_access on a node, edit the userreference field for the node type and check the "Use User Reference Access" box.Any users...
10 KB  
Modules  -  UUID Features Integration 7.x-1.0-alpha1
The UUID Features Integration module provides a mechanism for exporting content (nodes, taxonomy, fields) into a features module. What's that you say? You thought features was only for configuration? This module is meant to be used in the cases...
10 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB