Ferreteria/v2/usage/forms
< Ferreteria | v2 | usage
Jump to navigation
Jump to search
About
Forms in Ferreteria consist of several sets of classes that work together:
- control classes render editable (and eventually non-editable) data fields
- field classes handle translating values between internal storage and on-disk storage (database)
Code file: Template:Ferreteria/code
Classes:
- clsFields: a collection of clsField objects
- clsField: a generic (unspecialized) field, suitable for plain text
- clsFieldTime: field for storing date/time
- clsFieldNum: field for storing numeric (int or float) data
- clsFieldBool: field for storing a BIT-type boolean field (which, oddly, is returned as a single character instead of numeric)
- should be renamed clsFieldBool_bit
- clsFieldBool_Int: field for storing a boolean value stored as an integer
- clsField: a generic (unspecialized) field, suitable for plain text
- clsCtrls: a collection of clsCtrl form controls