1Validation::Class::DireUcsteirveC:o:nFtirlitbeurtieVndagl(Pi3ed)raltiDoonc:u:mCelnatsast:i:oDnirective::Filtering(3)
2
3
4
6 Validation::Class::Directive::Filtering - Filtering Directive for
7 Validation Class Field Definitions
8
10 version 7.900057
11
13 use Validation::Class::Simple;
14
15 my $rules = Validation::Class::Simple->new(
16 fields => {
17 telephone_number => {
18 filters => ['numeric']
19 filtering => 'post'
20 }
21 }
22 );
23
24 # set parameters to be validated
25 $rules->params->add($parameters);
26
27 # validate
28 unless ($rules->validate) {
29 # handle the failures
30 }
31
33 Validation::Class::Directive::Filtering is a core validation class
34 field directive that specifies whether filtering and sanitation should
35 occur as a pre-process or post-process.
36
38 Al Newkirk <anewkirk@ana.io>
39
41 This software is copyright (c) 2011 by Al Newkirk.
42
43 This is free software; you can redistribute it and/or modify it under
44 the same terms as the Perl 5 programming language system itself.
45
46
47
48perl v5.34.0 202V1a-l0i7d-a2t7ion::Class::Directive::Filtering(3)