Form::Sensible::Field::LongText - Field for representing large amounts of character-string data.


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

Index


NAME

Top

Form::Sensible::Field::LongText - Field for representing large amounts of character-string data.

SYNOPSIS

Top

    use Form::Sensible::Field::LongText;

    my $textfield = Form::Sensible::Field::LongText->new(
                                                    name => 'username',
                                                    maximum_length => 16,
                                                    should_truncate => 0
                                                  );




DESCRIPTION

Top

Form::Sensible::Field subclass for representing large amounts of character-string based data. It has all the same attributes and behaviors as Text, only is intended for larger amounts of text. It is separate from Text fields only because it is likely larger-blocks of text will require additional formatting and processing options.

ATTRIBUTES

Top

'maximum_length'

The maximum length this text field should accept. Note that any size of string can be placed in the field, it will simply fail validation if it is too large. Alternately if 'should_truncate' is true, the value will be truncated when it is set.

'should_truncate'

Indicates that if value is set to a string larger than maximum_length, it should be automatically truncated to maximum_length. This has to be manually turned on, by default should_truncate is false.

AUTHOR

Top

Jay Kuri - <jayk@cpan.org>

SPONSORED BY

Top

SEE ALSO

Top

Form::Sensible

LICENSE

Top

Copyright 2009 by Jay Kuri <jayk@cpan.org>

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


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