Andreas 'ac0v' Specht > Hyper > Hyper::Control::Validator::Group

Download:
Hyper-v0.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  1
View/Report Bugs
Module Version: v0.01   Source  

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 ^

roles :default<{}>

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 ^

INCOMPATIBILITIES ^

BUGS AND LIMITATIONS ^

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 $

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.

syntax highlighting: