1Validation::Class::DireUcsteirveC:o:nMtirxiibnu(t3e)d PeVralliDdoactuimoenn:t:aCtliaosns::Directive::Mixin(3)
2
3
4

NAME

6       Validation::Class::Directive::Mixin - Mixin Directive for Validation
7       Class Field Definitions
8

VERSION

10       version 7.900059
11

SYNOPSIS

13           use Validation::Class::Simple;
14
15           my $rules = Validation::Class::Simple->new(
16               mixins => {
17                   basic => {
18                       required => 1,
19                       filters  => ['trim', 'strip']
20                   }
21               }
22               fields => {
23                   full_name => {
24                       mixin => 'basic'
25                   }
26               }
27           );
28
29           # set parameters to be validated
30           $rules->params->add($parameters);
31
32           # validate
33           unless ($rules->validate) {
34               # handle the failures
35           }
36

DESCRIPTION

38       Validation::Class::Directive::Mixin is a core validation class field
39       directive that determines what directive templates will be merged with
40       the associated field.
41

AUTHOR

43       Al Newkirk <anewkirk@ana.io>
44
46       This software is copyright (c) 2011 by Al Newkirk.
47
48       This is free software; you can redistribute it and/or modify it under
49       the same terms as the Perl 5 programming language system itself.
50
51
52
53perl v5.36.0                      2023-04V-a0l3idation::Class::Directive::Mixin(3)
Impressum