NAME
Hyper::Control::Validator::Group - Control for handling group validators.
VERSION
This document describes Hyper::Control::Validator::Group 0.01
SYNOPSIS
use Hyper::Control::Validator::Group;
my $object = Hyper::Control::Validator::Group->new();
DESCRIPTION
Control which offers a template based container for group validators.
ATTRIBUTES
SUBROUTINES/METHODS
add_group_validator
$object->add_group_validator(
Hyper::Validator::Group::Compare->new(),
);
Add Single Validators to the control.
get_group_validators
my $validators_ref = $object->get_group_validators();
Get Group Validators which are trailed to the control.
get_first_invalid_validator
my $first_invalid_validator = $object->get_first_invalid_validator();
Get the first invalid validator of this control.
all_roles_valid
my $all_roles_are_valid = $object->all_roles_valid();
Checks if all controls which own a role in our group validator are valid.
is_valid
my $is_valid = $object->is_valid();
Returns a boolean value which show if all appended validators are valid.
add_base_element
$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<
DIAGNOSTICS
CONFIGURATION AND ENVIRONMENT
DEPENDENCIES
version
Hyper::Control::Validator
Class::Std::Storable
List::MoreUtils
Hyper::Singleton::Container::Validator::Group
INCOMPATIBILITIES
BUGS AND LIMITATIONS
RCS INFORMATIONS
- Last changed by
-
$Author: ac0v $
- Id
-
$Id: Group.pm 317 2008-02-16 01:52:33Z ac0v $
- Revision
-
$Revision: 317 $
- Date
-
$Date: 2008-02-16 02:52:33 +0100 (Sat, 16 Feb 2008) $
- HeadURL
-
$HeadURL: http://svn.hyper-framework.org/Hyper/Hyper/trunk/lib/Hyper/Control/Validator/Group.pm $
AUTHOR
Andreas Specht <ACID@cpan.org>
LICENSE AND COPYRIGHT
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.