Hyper::Control::Validator::Group - Control for handling group validators.
This document describes Hyper::Control::Validator::Group 0.01
use Hyper::Control::Validator::Group; my $object = Hyper::Control::Validator::Group->new();
Control which offers a template based container for group validators.
$object->add_group_validator( Hyper::Validator::Group::Compare->new(), );
Add Single Validators to the control.
my $validators_ref = $object->get_group_validators();
Get Group 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 $all_roles_are_valid = $object->all_roles_valid();
Checks if all controls which own a role in our group validator are valid.
my $is_valid = $object->is_valid();
Returns a boolean value which show if all appended validators are valid.
$object->add_base_element({ first => $base_control_new_password, });
or
$object->add_base_element({ first => $base_control_new_password, second => $base_control_repeat_new_password, });
Add Base elements to the all appended Validator Groups. Each base element takes a named role in the validator group(s). eg. $base_control_new_password takes teh named role >first<
version
Hyper::Control::Validator
Class::Std::Storable
List::MoreUtils
Hyper::Singleton::Container::Validator::Group
$Author: ac0v $
$Id: Group.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/Group.pm $
Andreas Specht <ACID@cpan.org>
<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.
To install Hyper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hyper
CPAN shell
perl -MCPAN -e shell install Hyper
For more information on module installation, please visit the detailed CPAN module installation guide.