Moritz Sinn > HTML-FormEngine-DBSQL-1.01 > HTML::FormEngine::DBSQL::DtHandler

Download:
HTML-FormEngine-DBSQL-1.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  0
View/Report Bugs
Source  

NAME ^

HTML::FormEngine::DBSQL::DtHandler - DBMS datatype handlers

GENERAL INFORMATION ABOUT DATATYPE HANDLERS ^

To every handler is given:

The handler then modifies the fields configuration hash and can use information out of the column information hash (which he mustn't modify!).

Which handler is called for which datatype is configured by the skin. The default skin is HTML::FormEngine::DBSQL::SkinClassic.

DATATYPE HANDLERS ^

_dbsql_dthandle_string

Sets templ to text and tries to determine the maximal length which is then assigned to MAXLEN. When MAXLEN is lower than the default size, SIZE is set to MAXLEN.

_dbsql_dthandle_bool

templ is set to select, Yes or No is given as options which is internally represented as 1 and 0.

_dbsql_dthandle_date

templ is set to text, SIZE and MAXLEN to 10 because a valid date value won't need more.

_dbsql_dthandle_text

templ is set to textarea.

_dbsql_dthandle_integer

ERROR is set to digitonly.

syntax highlighting: