BingoX
view release on metacpan or search on metacpan
lib/BingoX/Chromium.pm view on Meta::CPAN
);
} # END sub HTML_checkbox
=item C<HTML_file> ( $fieldname [, $qoptions ] )
Object Method:
Generic form field method called by AUTOLOAD.
Gets the default field params based on the fieldname and returns the value
in a form file upload field or in viewable format if the displaymode is 'view'.
=cut
sub HTML_file {
my $self = shift;
return undef unless ref($self);
my $fieldname = shift;
my $qoptions = shift || $self->fieldhtmloptions( $fieldname );
my $q = $self->cgi;
my $qfieldname = $self->qfieldname( $fieldname );
($self->displaymode eq 'view')
? $self->db_obj->$fieldname()
: $q->filefield(
-NAME => $qfieldname,
-SIZE => $qoptions->{'-SIZE'} || 40,
-MAXLENGTH => $qoptions->{'-MAXLENGTH'} || 200,
-OVERRIDE => 1,
-DEFAULT => '' # browsers null defaults in upload fields anyway
);
} #END sub HTML_file
=back
=head2 SANITY METHODS
These methods can be overridden at any level to provide customized sanity
checking. These methods always return an error message on failure, and an
( run in 1.816 second using v1.01-cache-2.11-cpan-b16cb0d3907 )