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