1HTML::FormFu::Deflator:U:sCeormpCoounntdrDiabtuetHTeTidMmLeP:(e:3rF)lorDmoFcuu:m:eDnetfaltaitoonr::CompoundDateTime(3)
2
3
4

NAME

6       HTML::FormFu::Deflator::CompoundDateTime - CompoundDateTime deflator
7

SYNOPSIS

9           ---
10           element:
11             - type: Multi
12               name: date
13
14               elements:
15                 - name: day
16                 - name: month
17                 - name: year
18
19               deflator:
20                 - type: CompoundDateTime
21
22           # set the default
23
24           $form->get_field('date')->default( $datetime );
25

DESCRIPTION

27       For use with a HTML::FormFu::Element::Multi group of fields.
28
29       Sets the default values of several fields from a single DateTime value.
30
31       By default, expects the field names to be any of the following:
32
33       year
34       month
35       day
36       hour
37       minute
38       second
39       nanosecond
40       time_zone
41

METHODS

43   field_order
44       Arguments: \@order
45
46       If your field names don't follow the convention listed above, you must
47       provide an arrayref containing the above names, in the order they
48       correspond with your own fields.
49
50           ---
51           element:
52             - type: Multi
53               name: date
54
55               elements:
56                 - name: m
57                 - name: d
58                 - name: y
59
60               deflator:
61                 - type: CompoundDateTime
62                   field_order:
63                     - month
64                     - day
65                     - year
66

AUTHOR

68       Carl Franks
69

LICENSE

71       This library is free software, you can redistribute it and/or modify it
72       under the same terms as Perl itself.
73
74
75
76perl v5.12.1                      20H1T0M-L0:5:-F1o6rmFu::Deflator::CompoundDateTime(3)
Impressum