Hyper::Control::Validator::Single - Control for handling single validators. |
Hyper::Control::Validator::Single - Control for handling single validators.
This document describes Hyper::Control::Validator::Single 0.01
use Hyper::Control::Validator::Single;
my $object = Hyper::Control::Validator::Single->new();
Control which offers a template based container for single validators.
$object->add_single_validator( Hyper::Validator::Single::Required->new(), );
Add Single Validators to the control.
my $validators_ref = $object->get_single_validators();
Get Single Validators which are trailed to the control.
my $first_invalid_validator = $object->get_first_invalid_validator();
Get the first invalid validator of this control.
my $is_valid = $object->is_valid();
Returns a boolean value which show if all appended validators are valid.
version
Hyper::Control::Validator
Class::Std::Storable
List::MoreUtils
Hyper::Singleton::Container::Validator::Single
$Author: ac0v $
$Id: Single.pm 474 2008-05-29 13:25:22Z ac0v $
$Revision: 474 $
$Date: 2008-05-29 15:25:22 +0200 (Do, 29 Mai 2008) $
$HeadURL: http://svn.hyper-framework.org/Hyper/Hyper/tags/0.05/lib/Hyper/Control/Validator/Single.pm $
Andreas Specht <ACID@cpan.org>
Copyright (c) 2007, Andreas Specht <ACID@cpan.org>
.
All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Hyper::Control::Validator::Single - Control for handling single validators. |