NAME

Hyper::Validator - Validator base class for all validator classes

VERSION

This document describes Hyper::Validator 0.01

SYNOPSIS

package Hyper::Validator::Single;

use Class::Std::Storable;
use base qw(Hyper::Validator);

1;

DESCRIPTION

Hyper::Validator provides basic features like templating for writing a validator class.

SUBROUTINES/METHODS

new

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

or with template filename and owner

my $object = Hyper::Validator->new({
   owner    => $input_object,
});

Contructor with additional owner parameter, which sets the owner of this validator (eg. a specific input or text field object)

get_html

$object->get_html();

Add this param to the template and return the return value of the output method of template.

is_valid

$object->is_valid();

Calls the object method VALIDATE, stores the return value in the object attribute is_valid and returns it.

DIAGNOSTICS

CONFIGURATION AND ENVIRONMENT

DEPENDENCIES

  • version

  • Class::Std::Storable

  • Hyper::Control::Template

INCOMPATIBILITIES

BUGS AND LIMITATIONS

RCS INFORMATIONS

Last changed by

$Author: ac0v $

Id

$Id: Validator.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/Validator.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.