Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cgi::application::plugin::fillinform(3pm) [debian man page]

CGI::Application::Plugin::FillInForm(3pm)		User Contributed Perl Documentation		 CGI::Application::Plugin::FillInForm(3pm)

NAME
CGI::Application::Plugin::FillInForm - integrate with HTML::FillInForm SYNOPSIS
use CGI::Application::Plugin::FillInForm (qw/fill_form/); my $t = $self->load_tmpl('farm.html'); $t->param( organic => 'less_pesticides' ); return $self->fill_form( $t->output ); DESCRIPTION
This plugin provides a mix-in method to make using HTML::FillInForm more convenient. fill_form() # fill an HTML form with data in a hashref or from an object with with a param() method my $filled_html = $self->fill_form($html, $data); # ...or fill from a list of data sources # (each item in the list can be either a hashref or an object) my $filled_html = $self->fill_form($html, [$user, $group, $query]); # ...or default to getting data from $self->query() my $filled_html = $self->fill_form($html); # extra fields will be passed on through: my $filled_html = $self->fill_form($html, undef, fill_password => 0 ); This method provides an easier syntax for calling HTML::FillInForm, and an intelligent default of using $self->query() as the default data source. By default, the mode param (usually 'rm') of every data source will be ignored. This prevents accidently clobbering your run mode for the next page, which may be stored in a hidden field. $html must be a scalarref, or a reference to a scalarref. $filled_html will be a reference to a string. Because this method only loads HTML::FillInForm if it's needed, it should be reasonable to load it in a base class and always have it available: use CGI::Application::Plugin::FillInForm (qw/fill_form/); AUTHORS
Cees Hek published the first draft on the CGI::App wiki Mark Stosberg, C<< <mark@summersault.com> >> polished it for release. Michael Graham, C<< <mag-perl@occamstoothbrush.com> >> added tests and some new features. The module is now co-maintained by Mark and Michael. BUGS
Please report any bugs or feature requests to "bug-cgi-application-plugin-fillinform@rt.cpan.org", or through the web interface at <http://rt.cpan.org>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. CONTRIBUTING
Patches, questions and feedback are welcome. This project is managed using the darcs source control system ( http://www.darcs.net/ ). My darcs archive is here: http://mark.stosberg.com/darcs_hive/cap-fif/ Copyright &; License Copyright 2005 Mark Stosberg, All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.3 2011-06-26 CGI::Application::Plugin::FillInForm(3pm)

Check Out this Related Man Page

CGI
::Application::Plugin::Authentication::Driver::CDBI(3User Contributed Perl DocumentaCGI::Application::Plugin::Authentication::Driver::CDBI(3pm) NAME
CGI::Application::Plugin::Authentication::Driver::CDBI - Class::DBI Authentication Driver VERSION
Version 0.02 SYNOPSIS
use base qw(CGI::Application); use CGI::Application::Plugin::Authentication; __PACKAGE__->authen->config( DRIVER => [ 'CDBI', CLASS => 'My::CDBI::Users', FIELD_METHODS => [qw(user MD5:passphrase)] ], CREDENTIALS => [qw(auth_username auth_password)], ); DESCRIPTION
This Authentication driver uses the Class::DBI module to allow you to authenticate against any Class::DBI class. PARAMETERS
The Class::DBI authentication driver accepts the following required parameters. CLASS (required) Specifies the Class::DBI class to use for authentication. This class must be loaded prior to use. FIELD_METHODS (required) FIELD_METHODS is an arrayref of the methods in the Class::DBI class specified by CLASS to be used during authentication. The order of these methods needs to match the order of the CREDENTIALS. For example, if CREDENTIALS is set to: CREDENTIALS => [qw(auth_user auth_domain auth_password)] Then FIELD_METHODS must be set to: FIELD_METHODS => [qw(userid domain password)] FIELD_METHODS supports filters as specified by CGI::Application::Plugin::Authentication::Driver METHODS
verify_credentials This method will test the provided credentials against the values found in the database, according to the Driver configuration. SEE ALSO
CGI::Application::Plugin::Authentication::Driver, CGI::Application::Plugin::Authentication, perl(1) AUTHOR
Shawn Sorichetti, "<ssoriche@coloredblocks.net>" BUGS
Please report any bugs or feature requests to "bug-cgi-application-plugin-authentication-driver-cdbi@rt.cpan.org", or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Application-Plugin-Authentication-Driver-CDBI <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Application-Plugin-Authentication-Driver-CDBI>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. ACKNOWLEDGEMENTS
Special thanks to Cees Hek for writing CGI::Application::Plugin::Authentication and his assistance in writing this module. COPYRIGHT &; LICENSE Copyright 2005 Shawn Sorichetti, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.3 2011-05-16 CGI::Application::Plugin::Authentication::Driver::CDBI(3pm)
Man Page

Featured Tech Videos