NAME
Handel::Components::Validation - Column validation for schemas
SYNOPSIS
package MySchema::Table;
use strict;
use warnings;
use base /DBIx::Class/;
__PACKAGE__->load_components('+Handel::Component::Validation');
__PACKAGE__->validation(
module => 'FormValidator::Simple',
profile => { ... },
auto => 1,
);
1;
DESCRIPTION
Handel::Components::Validation is a customized version of DBIx::Class::Validation for use in cart/order schemas.
There is no real reason to load this component into your schema table classes directly. If you set a profile using Handel::Storage->validation_profile, this component will be loaded into the appropriate schema source class automatically.
METHODS
validate
Validates the current row using the specified validation module.
SEE ALSO
DBIx::Class::Validation, FormValidator::Simple
AUTHOR
Christopher H. Laco
CPAN ID: CLACO
claco@chrislaco.com
http://today.icantfocus.com/blog/