File Coverage

blib/lib/Rose/HTML/Form/Field/Password.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             use strict;
3 2     2   86545  
  2         12  
  2         56  
4             use base 'Rose::HTML::Form::Field::Text';
5 2     2   8  
  2         4  
  2         505  
6             our $VERSION = '0.606';
7              
8             __PACKAGE__->add_required_html_attrs(
9             {
10             type => 'password',
11             name => '',
12             size => 15,
13             value => '',
14             });
15              
16             1;
17              
18              
19             =head1 NAME
20              
21             Rose::HTML::Form::Field::Password - Object representation of a password field in an HTML form.
22              
23             =head1 SYNOPSIS
24              
25             $field =
26             Rose::HTML::Form::Field::Password->new(
27             label => 'Your Password',
28             name => 'password',
29             size => 16,
30             maxlength => 64);
31              
32             $pw = $field->internal_value;
33              
34             print $field->html;
35              
36             ...
37              
38             =head1 DESCRIPTION
39              
40             L<Rose::HTML::Form::Field::Password> is an object representation of a password field in an HTML form.
41              
42             This class inherits from, and follows the conventions of, L<Rose::HTML::Form::Field>. Inherited methods that are not overridden will not be documented a second time here. See the L<Rose::HTML::Form::Field> documentation for more information.
43              
44             =head1 HTML ATTRIBUTES
45              
46             Valid attributes:
47              
48             accept
49             accesskey
50             checked
51             class
52             dir
53             disabled
54             id
55             lang
56             maxlength
57             name
58             onblur
59             onchange
60             onclick
61             ondblclick
62             onfocus
63             onkeydown
64             onkeypress
65             onkeyup
66             onmousedown
67             onmousemove
68             onmouseout
69             onmouseover
70             onmouseup
71             onselect
72             readonly
73             size
74             style
75             tabindex
76             title
77             type
78             value
79             xml:lang
80              
81             Required attributes (default values in parentheses):
82              
83             name
84             size (15)
85             type (password)
86             value
87              
88             Boolean attributes:
89              
90             checked
91             disabled
92             readonly
93              
94             =head1 CONSTRUCTOR
95              
96             =over 4
97              
98             =item B<new PARAMS>
99              
100             Constructs a new L<Rose::HTML::Form::Field::Password> object based on PARAMS, where PARAMS are name/value pairs. Any object method is a valid parameter name.
101              
102             =back
103              
104             =head1 AUTHOR
105              
106             John C. Siracusa (siracusa@gmail.com)
107              
108             =head1 LICENSE
109              
110             Copyright (c) 2010 by John C. Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.