NAME
Brannigan::Tree - A Brannigan validation/parsing scheme tree, possibly built from a series of inherited schemes.
VERSION
version 0.1
DESCRIPTION
This module is used internally by Brannigan. Basically, a tree is a validation/parsing scheme in its "final", workable structure, taking any inherited schemes into account. The actual validation and parsing of input is done in this module.
MODULES
new( $tree )
Creates a new Brannigan::Tree instance.
process( \%params )
Validates and parses the hash-ref of input parameters. Returns a hash-ref of the parsed input, possibly containing a '_rejects' hash-ref with a list of failed validations for each failed parameter.
validate( \%params, [\%validations] )
Validates the hash-ref of input parameters and returns a hash-ref of rejects (i.e. failed validation methods) for each parameter. Optionally receives a hash-ref of custom validation methods (incomplete feature, to be completed in the next release).
There is no need to call this method specifically, as it automatically called by the process()
method.
SEE ALSO
Brannigan, Brannigan::Validations.
AUTHOR
Ido Perlmuter, <ido at ido50.net>
BUGS
Please report any bugs or feature requests to bug-brannigan at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Brannigan. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Brannigan::Tree
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
Brannigan is inspired by Oogly (Al Newkirk) and the "Ketchup" jQuery validation plugin (http://demos.usejquery.com/ketchup-plugin/).
LICENSE AND COPYRIGHT
Copyright 2010 Ido Perlmuter.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.