~ubuntu-branches/ubuntu/edgy/libcgi-formbuilder-perl/edgy

« back to all changes in this revision

Viewing changes to lib/CGI/FormBuilder/Field/hidden.pm

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2006-05-28 15:47:27 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20060528154727-u26u5nqd0btamxpm
Tags: 3.03.01-1
* New upstream release.
  + optgroups bugfix for complex arrays.
  + removal of HTML::Entities support due to utf8 issues. Closes:
    bug#338369 (thanks to Todd Charron <tcharron@badkarma.mine.nu> for
    reporting, and to several others for working on workarounds).
  + new es_ES Messages module with better translations
  + a patch from Mark Hedges to enable plugin modules for mailresults()
* Update local cdbs snippet copyright-check.mk:
  + Broaden scan to also look for "(c)" by default.
  + Make egrep options configurable.
* Bump up standards-version to 3.7.2 (no changes needed).
* Update debian/copyright_hints (nothing remarkable).
* Bump up debian/watch to version 3 syntax, and use uversionmangle
  instead of multiple parantheses (both work using uscan locally, but
  the later hopefully works with qa.debian.org too).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
package CGI::FormBuilder::Field::hidden;
 
3
 
 
4
=head1 NAME
 
5
 
 
6
CGI::FormBuilder::Field::hidden - FormBuilder class for hidden fields
 
7
 
 
8
=head1 SYNOPSIS
 
9
 
 
10
    use CGI::FormBuilder::Field;
 
11
 
 
12
    # delegated straight from FormBuilder
 
13
    my $f = CGI::FormBuilder::Field->new($form,
 
14
                                         name => 'whatever',
 
15
                                         type => 'hidden');
 
16
 
 
17
=cut
 
18
 
 
19
use strict;
 
20
 
 
21
our $VERSION = '3.03';
 
22
 
 
23
# hidden and password fields are rendered exactly like text fields
 
24
 
 
25
use CGI::FormBuilder::Util;
 
26
use CGI::FormBuilder::Field::text;
 
27
use base 'CGI::FormBuilder::Field::text';
 
28
 
 
29
sub script {
 
30
    return '';  # hidden fields are never checked
 
31
}
 
32
 
 
33
1;
 
34
 
 
35
__END__
 
36
 
 
37
=head1 DESCRIPTION
 
38
 
 
39
This module is used to create B<FormBuilder> elements of a specific type.
 
40
Currently, each type module inherits all of its methods from the main
 
41
L<CGI::FormBuilder::Field> module except for C<tag()> and C<script()>,
 
42
which affect the XHMTL representation of the field.
 
43
 
 
44
Please refer to L<CGI::FormBuilder::Field> and L<CGI::FormBuilder> for
 
45
documentation.
 
46
 
 
47
=head1 SEE ALSO
 
48
 
 
49
L<CGI::FormBuilder>, L<CGI::FormBuilder::Field>
 
50
 
 
51
=head1 REVISION
 
52
 
 
53
$Id: hidden.pm,v 1.12 2006/02/24 01:42:29 nwiger Exp $
 
54
 
 
55
=head1 AUTHOR
 
56
 
 
57
Copyright (c) 2005-2006 Nate Wiger <nate@wiger.org>. All Rights Reserved.
 
58
 
 
59
This module is free software; you may copy this under the terms of
 
60
the GNU General Public License, or the Artistic License, copies of
 
61
which should have accompanied your Perl kit.
 
62
 
 
63
=cut