| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use strict; |
|
3
|
2
|
|
|
2
|
|
101170
|
|
|
|
2
|
|
|
|
|
12
|
|
|
|
2
|
|
|
|
|
59
|
|
|
4
|
|
|
|
|
|
|
use base 'Rose::HTML::Form::Field::Text'; |
|
5
|
2
|
|
|
2
|
|
8
|
|
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
503
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.606'; |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
__PACKAGE__->required_html_attr_value(type => 'file'); |
|
9
|
|
|
|
|
|
|
__PACKAGE__->delete_valid_html_attrs(qw(ismap usemap alt src)); |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
1; |
|
12
|
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 NAME |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
Rose::HTML::Form::Field::File - Object representation of a file upload field in an HTML form. |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
$field = |
|
21
|
|
|
|
|
|
|
Rose::HTML::Form::Field::File->new( |
|
22
|
|
|
|
|
|
|
label => 'File', |
|
23
|
|
|
|
|
|
|
name => 'file', |
|
24
|
|
|
|
|
|
|
size => 32); |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
print $field->html; |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
... |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
L<Rose::HTML::Form::Field::File> is an object representation of a file upload field in an HTML form. |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
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. |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 HTML ATTRIBUTES |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Valid attributes: |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
accept |
|
41
|
|
|
|
|
|
|
accesskey |
|
42
|
|
|
|
|
|
|
checked |
|
43
|
|
|
|
|
|
|
class |
|
44
|
|
|
|
|
|
|
dir |
|
45
|
|
|
|
|
|
|
disabled |
|
46
|
|
|
|
|
|
|
id |
|
47
|
|
|
|
|
|
|
lang |
|
48
|
|
|
|
|
|
|
maxlength |
|
49
|
|
|
|
|
|
|
name |
|
50
|
|
|
|
|
|
|
onblur |
|
51
|
|
|
|
|
|
|
onchange |
|
52
|
|
|
|
|
|
|
onclick |
|
53
|
|
|
|
|
|
|
ondblclick |
|
54
|
|
|
|
|
|
|
onfocus |
|
55
|
|
|
|
|
|
|
onkeydown |
|
56
|
|
|
|
|
|
|
onkeypress |
|
57
|
|
|
|
|
|
|
onkeyup |
|
58
|
|
|
|
|
|
|
onmousedown |
|
59
|
|
|
|
|
|
|
onmousemove |
|
60
|
|
|
|
|
|
|
onmouseout |
|
61
|
|
|
|
|
|
|
onmouseover |
|
62
|
|
|
|
|
|
|
onmouseup |
|
63
|
|
|
|
|
|
|
onselect |
|
64
|
|
|
|
|
|
|
readonly |
|
65
|
|
|
|
|
|
|
size |
|
66
|
|
|
|
|
|
|
style |
|
67
|
|
|
|
|
|
|
tabindex |
|
68
|
|
|
|
|
|
|
title |
|
69
|
|
|
|
|
|
|
type |
|
70
|
|
|
|
|
|
|
value |
|
71
|
|
|
|
|
|
|
xml:lang |
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
Required attributes (default values in parentheses): |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
name |
|
76
|
|
|
|
|
|
|
size |
|
77
|
|
|
|
|
|
|
type (file) |
|
78
|
|
|
|
|
|
|
value |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Boolean attributes: |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
checked |
|
83
|
|
|
|
|
|
|
disabled |
|
84
|
|
|
|
|
|
|
readonly |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=over 4 |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=item B<new PARAMS> |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Constructs a new L<Rose::HTML::Form::Field::File> object based on PARAMS, where PARAMS are name/value pairs. Any object method is a valid parameter name. |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=back |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head1 AUTHOR |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
John C. Siracusa (siracusa@gmail.com) |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head1 LICENSE |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
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. |