hidden.pm

filter: Statementstmt 77.7% 7 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 83.3% 10 / 12 CC 1 SCAR 0.9
CC
1
Cov
78%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« header.pm ↑ Summary input.pm »
1 package HTML::GUI::hidden;
2  
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 =head1 NAME
7  
8 HTML::GUI::hidden - Create and control a hidden input for webapp
9  
10 =head1 VERSION
11  
12 Version 0.01
13  
14 =cut
15  
16 our $VERSION = '0.01';
17  
18  
19 0 ▶use HTML::GUI::input;
Subroutine BEGIN: called CC=1 SCAR=2.6
20 our @ISA = qw(HTML::GUI::input);
21  
22 =head1 HIDDEN
23  
24 The hidden widget is the specialisation of the widget class for classical values ("enter your name").
25  
26 =cut
27  
28  
29  
30 =pod
31  
32 =head1 PUBLIC METHODS
33  
34 =pod
35  
36 =head3 new
37  
38 Parameters :
39 params : widget :
40  
41 =cut
42  
43 sub new
44 {
45 my($class,
46 $params, # widget :
47 ) = @_;
48  
49 my $this = $class->SUPER::new($params);
50 $this->{type} = "hidden";
51  
52 bless($this, $class);
53 }
54  
55  
56 =pod
57  
58 =head3 getHtml
59  
60 Description :
61 Return the html of the widget.
62  
63 =cut
64  
65 sub getHtml
66 {
67 my($self) = @_;
68 my %tagProp=();
69
70 $tagProp{type} = 'hidden';
71 $tagProp{value} = $self->getValue();
72 $tagProp{name} = $tagProp{id} = $self->{id};
73
74 return $self->getHtmlTag("input",\%tagProp) ;
75 }
76  
77  
78 =head1 AUTHOR
79  
80 Jean-Christian Hassler, C<< <jhassler at free.fr> >>
81  
82 =head1 BUGS
83  
84 Please report any bugs or feature requests to
85 C<bug-gui-libhtml-hidden at rt.cpan.org>, or through the web interface at
86 L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTML-GUI-widget>.
87 I will be notified, and then you'll automatically be notified of progress on
88 your bug as I make changes.
89  
90 =head1 SUPPORT
91  
92 You can find documentation for this module with the perldoc command.
93  
94 perldoc HTML::GUI::widget
95  
96 You can also look for information at:
97  
98 =over 4
99  
100 =item * AnnoCPAN: Annotated CPAN documentation
101  
102 L<http://annocpan.org/dist/HTML-GUI-widget>
103  
104 =item * CPAN Ratings
105  
106 L<http://cpanratings.perl.org/d/HTML-GUI-widget>
107  
108 =item * RT: CPAN's request tracker
109  
110 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTML-GUI-widget>
111  
112 =item * Search CPAN
113  
114 L<http://search.cpan.org/dist/HTML-GUI-widget>
115  
116 =back
117  
118 =head1 ACKNOWLEDGEMENTS
119  
120 =head1 COPYRIGHT & LICENSE
121  
122 Copyright 2007 Jean-Christian Hassler, all rights reserved.
123  
124 This program is free software; you can redistribute it and/or modify it
125 under the same terms as Perl itself.
126  
127 =cut
128  
129 1; # End of HTML::GUI::hidden
« header.pm ↑ Summary input.pm »