Hyper::Control::Validator::Group - Control for handling group validators.


Back to Top


NAME

Hyper::Control::Validator::Group - Control for handling group validators.

Back to Top


VERSION

This document describes Hyper::Control::Validator::Group 0.01

Back to Top


SYNOPSIS

    use Hyper::Control::Validator::Group;
    my $object = Hyper::Control::Validator::Group->new();

Back to Top


DESCRIPTION

Control which offers a template based container for group validators.

Back to Top


ATTRIBUTES

roles :default<{}>

Back to Top


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<

Back to Top


DIAGNOSTICS

Back to Top


CONFIGURATION AND ENVIRONMENT

Back to Top


DEPENDENCIES

Back to Top


INCOMPATIBILITIES

Back to Top


BUGS AND LIMITATIONS

Back to Top


RCS INFORMATIONS

Last changed by

$Author: ac0v $

Id

$Id: Group.pm 474 2008-05-29 13:25:22Z ac0v $

Revision

$Revision: 474 $

Date

$Date: 2008-05-29 15:25:22 +0200 (Do, 29 Mai 2008) $

HeadURL

$HeadURL: http://svn.hyper-framework.org/Hyper/Hyper/tags/0.05/lib/Hyper/Control/Validator/Group.pm $

Back to Top


AUTHOR

Andreas Specht <ACID@cpan.org>

Back to Top


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.

Back to Top

 Hyper::Control::Validator::Group - Control for handling group validators.