Validation::Class::Field3pm
Field object for validation::class classes
Usage
package SomeClass;use Validation::Class;package main;my $class = SomeClass->new;...my $field = $class->get_field('some_field_name');$field->apply_filters;$field->validate; # validate this only$field->errors->count; # field-level errors1;
Version
version 7.70
Overview
Validation::Class::Field is responsible for field data handling in Validation::Class derived classes, performs functions at the field-level only.
This class automatically creates attributes for all acceptable field directives as listed under "DIRECTIVES" in Validation::Class::Prototype.
Attributes
errors
The errors attribute is a Validation::Class::Errors object.
Methods
new
my $self = Validation::Class::Field->new({name => 'some_field_name'});
Copyright and license
This software is copyright (c) 2011 by Al Newkirk.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.