NAME

DBIx::HTMLView::Field - Base class for field classes

SYNOPSIS

$fld=$post->fld('testf');
print $fld->view_html;

DESCRIPTION

This is a subcalss of DBIx::HTMLView::Fld used to represent fields in the databse as well as the data contained in it. Except for the methods decsribed in the DBIx::HTMLView::Fld man page this class contains some methods for handling the data contain in the field. They are described below.

It also contains default implementations of all the virtual methods except name_vals described in that man page. For viewing this means the value is used without any formating (both for text and html), and for the edit_html method a standard <input size=20 ...> tag is used.

METHODS

$fld->val

Returns the value of this field if it's value is set. otherwise it dies with "Field conatins no data".

$fld->got_val

Return true if the value of this field is set (defiend).