The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Dancer::Plugin::Params::Normalization::Abstract - class for custom parameters normalization

VERSION

version 0.52

DESCRIPTION

This virtual class describes how to build a custom normalization object for Dancer::Plugin::Params::Normalization. This is done in order to allow custom transformation of the parameters with a common interface.

Any custom normalization package must inherits from Dancer::Plugin::Params::Normalization::Abstract and implement the following abstract methods.

METHODS

init()

Is called once, on initialization of the class. Can be used to create needed initialization objects, like a database connection, etc.

normalize($hashref)

Receives a hashref that contains the parameters keys/value. It should return a hashref (it can be the same), containing modified parameters.

NAME

Dancer::Plugin::Params::Normalization::Abstract - abstract class for custom parameters normalization

Abstract Methods

Inherited Methods

None for now.

SEE ALSO

Dancer, Dancer::Engine

AUTHOR

Damien "dams" Krotkine

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Damien "dams" Krotkine.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.