Hakan Ardo > DBIx-HTMLView > DBIx::HTMLView::Bool

Download:
DBIx-HTMLView-0.9.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Source  

NAME ^

  DBIx::HTMLView::Bool - A boolean field

SYNOPSIS ^

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

DESCRIPTION ^

This is a subclass of DBIx::HTMLView::Str used to represent boolean data (eg true or false). It is represented by a one character field that is default wither Y or N. The main difference from a Str is that the default edit_html editor uses a two <input type=radio ...> buttons to construct the editor.

$data of the constructor (see the new method of DBIx::HTMLView::Fld) can have the following values specified:

true - the value stored in the databse when this field should represent true, default Y. false - the value stored in the databse when this field should represent false, default N. view_true - the value used to view a true value for the view_html, edit_html and view_text methods, defaule Yes. view_false - the value used to view a false value for the view_html, edit_html and view_text methods, defaule No.

METHODS ^

syntax highlighting: