DBIx::HTMLView::Field - Base class for field classes
$fld=$post->fld('testf'); print $fld->view_html;
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.
Returns the value of this field if it's value is set. otherwise it dies with "Field conatins no data".
Return true if the value of this field is set (defiend).
To install DBIx::HTMLView, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::HTMLView
CPAN shell
perl -MCPAN -e shell install DBIx::HTMLView
For more information on module installation, please visit the detailed CPAN module installation guide.