NAME

Template::Flute::Form - Form object for Template::Flute templates.

CONSTRUCTOR

new

Creates Template::Flute::Form object.

METHODS

params_add PARAMS

Add parameters from PARAMS to form.

fields_add FIELDS

Add fields from FIELDS to form.

inputs_add INPUTS

Add inputs from INPUTS to form.

name

Returns name of the form.

elt

Returns corresponding HTML template element of the form.

fields

Returns form fields.

params

Returns form parameters.

inputs

Returns form inputs.

input PARAMS

Verifies that input parameters are sufficient. Returns 1 in case of success, 0 otherwise.

iterators

Returns names of all iterators used by the fields for this form.

action

Returns current form action.

set_action ACTION

Sets from action to ACTION.

method

Returns current form method, e.g. GET or POST.

set_method METHOD

Sets form method to METHOD, e.g. GET or POST.

fill PARAMS

Fills form with parameters from hash reference PARAMS.

is_filled

Return true if you called fill on the form.

AUTHOR

Stefan Hornburg (Racke), <racke@linuxia.de>

LICENSE AND COPYRIGHT

Copyright 2010-2016 Stefan Hornburg (Racke) <racke@linuxia.de>.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.