1HTML::FormFu::ConstrainUts:e:rCaClolnbtarcikbOuntceedH(T3PM)eLr:l:FDoorcmuFmue:n:tCaotnisotnraint::CallbackOnce(3)
2
3
4

NAME

6       HTML::FormFu::Constraint::CallbackOnce - Code Callback Constraint
7

SYNOPSIS

9           $form->constraint({
10               type => 'CallbackOnce',
11               name => 'foo',
12               callback => \&sfoo,
13           );
14
15           sub foo {
16               my ( $value, $params ) = @_;
17
18               # return true or false
19           }
20

DESCRIPTION

22       Unlinke the HTML::FormFu::Constraint::Callback, this callback is only
23       called once, regardless of how many values are submitted.
24
25       The first argument passed to the callback is the submitted value for
26       the associated field; this may be a single value or an arrayref of
27       value.  The second argument passed to the callback is a hashref of
28       name/value pairs for all input fields.
29
30       This constraint doesn't honour the "not()" value.
31

METHODS

33   callback
34       Arguments: \&sub_ref
35

SEE ALSO

37       Is a sub-class of, and inherits methods from HTML::FormFu::Constraint
38
39       HTML::FormFu
40

AUTHOR

42       Carl Franks "cfranks@cpan.org"
43

LICENSE

45       This library is free software, you can redistribute it and/or modify it
46       under the same terms as Perl itself.
47
48
49
50perl v5.12.1                      2010H-T0M5L-:1:6FormFu::Constraint::CallbackOnce(3)
Impressum