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
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.