1HTML::FormFu::Role::ConUssterraiCnotn:t:rOitbhuetresdH(T3PM)eLr:l:FDoorcmuFmue:n:tRaotlieo:n:Constraint::Others(3)
2
3
4
6 HTML::FormFu::Role::Constraint::Others - Base class for constraints
7 needing others() method
8
10 version 2.07
11
13 others
14 Arguments: \@nested_names
15
16 other_siblings
17 Arguments: $bool
18
19 If true, the "others" list will be automatically generated from the
20 "nested_name" of all fields which are considered siblings of the field
21 the constraint is attached to.
22
23 Sibling are found by searching up through the field's parental
24 hierarchy for the first block containing any other field. All fields
25 attached at any depth to this block are considered siblings.
26
27 attach_errors_to_base
28 If true, any error will cause the error message to be associated with
29 the field the constraint is attached to.
30
31 Can be use in conjunction with "attach_errors_to_others".
32
33 Is ignored if "attach_errors_to" is set.
34
35 attach_errors_to_others
36 If true, any error will cause the error message to be associated with
37 every field named in "others".
38
39 Can be use in conjunction with "attach_errors_to_base".
40
41 Is ignored if "attach_errors_to" is set.
42
43 attach_errors_to
44 Arguments: \@field_names
45
46 Any error will cause the error message to be associated with every
47 field named in "attach_errors_to".
48
49 Overrides "attach_errors_to_base" and "attach_errors_to_others".
50
52 Is a sub-class of, and inherits methods from HTML::FormFu::Constraint
53
54 HTML::FormFu
55
57 Carl Franks "cfranks@cpan.org"
58
60 This library is free software, you can redistribute it and/or modify it
61 under the same terms as Perl itself.
62
64 Carl Franks <cpan@fireartist.com>
65
67 This software is copyright (c) 2018 by Carl Franks.
68
69 This is free software; you can redistribute it and/or modify it under
70 the same terms as the Perl 5 programming language system itself.
71
72
73
74perl v5.34.0 2022H-T0M1L-:2:1FormFu::Role::Constraint::Others(3)