The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

User::Config::UI::HTMLFormHandler - generate a userinterface for User::Config using a web-form.

SYNOPSIS

  use User::Config;
  use CGI qw/:cgi-lib/;

  my $uc = User::Config->instance;
  my $ui = $uc->ui("HTMLFormHandler");
  my $params = Vars;
  my $form->generate($params);
    ...
  print $form->render;

DESCRIPTION

Using this module, a form is generated containing all visible options for User::Config. The generate-method will also process the parameters, if any are given. Either way a fully functional HTML::FormHandler-object is returned.

ATTRIBUTES

context

This will set the context User::Config is working in. By default, this will be the global context.

form_options

This attribute will contain all additional parameters used while generating the HTML::FormHandler-object.

params

the CGI-parameters given

METHODS

<$self-generate()>>

generates a new HTML::FormHandler-object. Optionally a hash-ref containing the actual CGI-parameters can be submitted. This will replace the parameters set within the current instance.

AUTHOR

Benjamin Tietz <benjamin@micronet24.de>

COPYRIGHT AND LICENSE

Copyright (C) 2011 by Benjamin Tietz

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.