Andrew Sterling Hanenkamp > Form-Factory > Form::Factory::Feature::Control::Length

Download:
Form-Factory-0.020.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.020   Source  

NAME ^

Form::Factory::Feature::Control::Length - A control feature for checking length

VERSION ^

version 0.020

SYNOPSIS ^

  has_control login_name => (
      control => 'text',
      feature => {
          length => {
              minimum => 3,
              maximum => 15,
          },
      },
  );

DESCRIPTION ^

Linked to a control, it checks to see that the string is not too short or too long.

ATTRIBUTES ^

minumum

The optional minimum length permitted for the string.

maximum

The optional maximum length permitted for the string.

METHODS ^

check_control

Makes sure the value is a Form::Factory::Control::Role::ScalarValue.

check

Verifies that the value of the control is not too short or too long.

AUTHOR ^

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE ^

Copyright 2009 Qubling Software LLC.

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: