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


Form-Factory documentation  | view source Contained in the Form-Factory distribution.

Index


NAME

Top

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

VERSION

Top

version 0.020

SYNOPSIS

Top

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

DESCRIPTION

Top

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

ATTRIBUTES

Top

minumum

The optional minimum length permitted for the string.

maximum

The optional maximum length permitted for the string.

METHODS

Top

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

Top

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

Top


Form-Factory documentation  | view source Contained in the Form-Factory distribution.