PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB_DataObject_FormBuilder

Class to automatically build HTML_QuickForm objects from a DB_DataObject-derived class

This package is unmaintained.

Download latest release 1.0.2 (archived versions might be outdated)

License: LGPL

Description

DB_DataObject_FormBuilder will aid you in rapid application development using the packages DB_DataObject and HTML_QuickForm. For having a quick but working prototype of your application, simply model the database, run DataObject's createTable script over it and write a script that passes one of the resulting objects to the FormBuilder class. The FormBuilder will automatically generate a simple but working HTML_QuickForm object that you can use to test your application. It also provides a processing method that will automatically detect if an insert() or update() command has to be executed after the form has been submitted. If you have set up DataObject's links.ini file correctly, it will also automatically detect if a table field is a foreign key and will populate a selectbox with the linked table's entries. There are many optional parameters that you can place in your DataObjects.ini or in the properties of your derived classes, that you can use to fine-tune the form-generation, gradually turning the prototypes into fully-featured forms, and you can take control at any stage of the process.

Documentation

Manual

Maintainers

Dependencies

Required

Optional

Releases

Bugs

IDStatusTypeVersionDateSummary
#422ClosedBug2003-12-13date.php setValue() doesn't allow value set of emptyOptionValue
#423ClosedBug2003-12-14Form file uploading bug.
#458ClosedBug2003-12-19metod preProcess() not work
#477ClosedBug2003-12-22Call set{field} in processForm if existing
#500ClosedBug2003-12-28Unable to create date QuickForm elements
#511Wont fixBug2004-01-02preDefOrder should not include hidden fields
#624ClosedBug2004-01-25FormBuilder bug caused by DataObject improvements
#635ClosedBug2004-01-27form_header_text impossible to set
#646ClosedBug2004-01-30Recursive lookup of field display not included from earlier patch
#746ClosedBug2004-02-12FORCEINSERT debug message uses undefined variable
#767ClosedBug2004-02-16missing closing html-tag in example
#848DuplicateBug2004-02-24Generator.php not null fields wrong keys generation
#866BogusBug2004-02-26PEAR QA: improvement for get_class()-usage
#917ClosedBug2004-02-27QuickForm Object passed by value to DataObject::postGenerateForm() method
#919ClosedBug2004-02-27Autogenerated Elements fail to detect proper data Types
#1101No FeedbackBug2004-03-30Populate a selectbox does not work
#1374BogusBug2004-05-10Links (generating selectbox) do not works
#1448ClosedBug2004-05-19[patch] Use getLink() instead of links()
#1457ClosedBug2004-05-20[patch] preDefOrder and fieldsToRender can't be used together
#1459ClosedBug2004-05-20preDefElements can only be used once per DO
#1479BogusBug2004-05-24Formbuilder converts NULL to ''
#1487ClosedBug2004-05-24[Feature Request] NOTNULL fields should have a required rule
#1500ClosedBug2004-05-25There should be a fallback for displayfield other than select_display_field
#1502No FeedbackBug2004-05-26edit textarea error
#1539ClosedBug2004-06-02[patch] Put back date and new DO type handling as well as adding crosslink
#1644ClosedReq2004-06-15[patch] generate SELECT from non-numeric fields
#1696ClosedBug2004-06-21userEditableFields seems not to work
#1699ClosedBug2004-06-22Notice: Undefined property _triple/_crossLinks
#1700ClosedBug2004-06-22Notice: Array to string conversion
#1715ClosedBug2004-06-24array2date: string replacement
#1717Wont fixBug2004-06-24setDefaults overwrites data
#1829ClosedBug2004-07-08Date callbacks not called correctly
#1849ClosedBug2004-07-12function &_createDateElement($name) does not modify $formValues actually
#1876BogusBug2004-07-14code generates warnings with E_ALL
#1931ClosedBug2004-07-20Associative array options call not working in create
#1960ClosedReq2004-07-22can't use UseForm two combine two forms with similar field names
#1981ClosedBug2004-07-26not adding rules in postGenerateForm
#2193Wont fixReq2004-08-22filename lost on dataobject->update()
#2199ClosedBug2004-08-23foreach warning on line 543
#2204ClosedReq2004-08-24use getFieldLabel when adding a rule
#2257ClosedBug2004-08-30fb object passed to preGenerateForm is not 100% functional
#2264ClosedBug2004-09-01preDefElements ignored in generateForm method when field type is string
#2333ClosedReq2004-09-14Freeze non-editable elements and allow client side rules
#2336ClosedBug2004-09-15dateFieldLanguage property doesn't work
#2356DuplicateBug2004-09-17Call time pass by reference error
#2375ClosedReq2004-09-22Array2Date & Date2Array
#2424No FeedbackReq2004-09-30Formbuilder has huge memory footprint
#2658ClosedBug2004-11-01preProcessForm doesn't permanently change form values
#2719ClosedBug2004-11-08requiredRuleMessage not working in new version
#2776BogusBug2004-11-16preProcessForm cannot access elementNamePrefix/Postfix
#2841ClosedReq2004-11-27Prevent updates on crosslinks to delete prior entries
#2888ClosedReq2004-12-04Automatically add null element in Select for Link if field may be null
#2889ClosedReq2004-12-04Automatically create checkboxes for reverse links in forms
#2913ClosedBug2004-12-07Crosslink (Checkbox) Problem
#2915ClosedBug2004-12-07tripleLinks aren't frozen with the rest of the form
#2958ClosedReq2004-12-13crossLink customization
#2966ClosedReq2004-12-14Allow editing of extra fields with crossLinks
#2978ClosedReq2004-12-16Allow adding additional attributes to form elements
#2979ClosedBug2004-12-160 as primary key may cause unwanted insert
#2983No FeedbackReq2004-12-17Automatically generate Cancel Button
#3002BogusBug2004-12-21Call to undefined function: getform()
#3036ClosedBug2004-12-27Use of $this->_do->sequenceKey in processForm();
#3042ClosedBug2004-12-27auto-detection based validation harmful
#3069DuplicateBug2004-12-30deprecated call-time pass-by-reference
#3082ClosedBug2005-01-03_multiArrayToSingleArray()/prefix/postfix causes grouped elements to be ignored
#3096ClosedBug2005-01-04processForm() should quit and return errors when they occur
#3111BogusBug2005-01-05Crosslink tables are not deleted when linked elements are deleted
#3124ClosedBug2005-01-06frozen select options not displayed
#3128Wont fixReq2005-01-06selectable crossLinks?
#3154ClosedBug2005-01-10boolean-integer fields rendered as integers texts rather than boolean checkbox
#3163ClosedBug2005-01-11returned values from _getMyValues() still contain unfiltered values
#3164BogusReq2005-01-11Use of DB_DataObject_Cast use should be removed or optional
#3167ClosedBug2005-01-11checkbox type does not permitting setting a DB_DATAOBJECT_BOOL field to false
#3182ClosedBug2005-01-12_getFieldsToRender() and _reorderElements() drop fields in certain situations
#3199ClosedBug2005-01-14Formbuilder affected by PHP Change / QuickForm issue
#3230ClosedBug2005-01-18Still getting Call-time pass-by-reference error even after your fix
#3233ClosedReq2005-01-18Add option to specify label for selectAddEmtpy
#3288OpenReq2005-01-24New Boolean issue.
#3319ClosedBug2005-01-27date format overrides timeformat
#3330No FeedbackBug2005-01-30Time elements from mysql are not working due to date parsing problem
#3333ClosedBug2005-01-30selectAddEmpty for time elements error in code
#3334No FeedbackReq2005-01-30Support for "specialElements"
#3343ClosedBug2005-01-31elementNamePrefix problem with required rule
#3409BogusBug2005-02-08Doc on Wiki is incorrect
#3469ClosedBug2005-02-14enum fields don't show proper value
#3559BogusBug2005-02-22processform not defined when crossLinkExtraFields in use
#3650Wont fixReq2005-02-28processForm autodetect not sequence keys
#3662ClosedReq2005-03-01Request for option to allow turning on/off of addrule feature
#3755OpenReq2005-03-09Add Field Type = SET
#3796ClosedReq2005-03-12Groups always rendered as last
#3798Wont fixReq2005-03-13Add headings to several fields
#3845BogusBug2005-03-16linkNewValue and virtual fields prefixing
#3853Wont fixBug2005-03-16problem rendering forms with multiple primary (sub)keys
#3877ClosedBug2005-03-18extra fields in crosslink table lost on update to parent table
#3941ClosedBug2005-03-24Warning-message when using latest version
#3998Wont fixReq2005-03-30New strFields Configuration Array
#4041OpenReq2005-04-03crossLinkExtraFields for multi-select forms
#4187OpenReq2005-04-20fieldLabels postfix/prefix
#4199Wont fixReq2005-04-21Break out types of FormBuilder elements into seperate classes
#4206Wont fixReq2005-04-22Filter for selection box and calling statically _array2date
#4274No FeedbackBug2005-05-03Problem with relationships in FormBuilder
#4313ClosedReq2005-05-10customize linkNewValue's --New Value--
#4363BogusBug2005-05-17Problem with some colum names
#4364ClosedBug2005-05-17Code error on FormBuilder.php -> line 2380
#4370ClosedReq2005-05-17Make all callbacks options
#4390ClosedReq2005-05-19Add callback options for remaining callbacks
#4407ClosedBug2005-05-22addFormHeader no longer works in 0.16.0
#4413BogusBug2005-05-24linkNewValue does not auto-fill in link ids
#4440ClosedBug2005-05-26Appended forms does not contain rules and errors
#4450ClosedReq2005-05-26Request for fieldsRequired and a change to how options are loaded with diff
#4485ClosedBug2005-05-31Checkboxes of crosslinks goes wrong after freeze()
#4506No FeedbackBug2005-06-02Compatibility with Firefox and other
#4562ClosedBug2005-06-09Request to change group elements like dates to use addGroupRule
#4563Wont fixReq2005-06-09Request to add more rule/filter options
#4617ClosedBug2005-06-17NOT NULL Enum fields are not required anymore
#4625BogusReq2005-06-18Make _date2array & _array2date class functions
#4647ClosedReq2005-06-20collapsible reverseLinks
#4668BogusBug2005-06-23Fatal error: Call to undefined method HTML_QuickForm_Error::updateAttributes()
#4678BogusBug2005-06-25Setting field labels in preGenerateForm() fails
#4710ClosedBug2005-06-29Date callbacks should not be called on non-date elements
#4867ClosedBug2005-07-20enumOptions renumbered for NULL fields
#4893No FeedbackReq2005-07-22paging for dropdowns
#4902No FeedbackBug2005-07-24saving new objects to database
#5040ClosedReq2005-08-09_array2date ampm fix
#5127ClosedBug2005-08-17crosslink fields don't work with pgsql
#5172ClosedReq2005-08-21getFieldLabel Improvement?
#5188ClosedBug2005-08-23dateOptions callback broken by 0.18.0
#5202OpenReq2005-08-24Option for converting empty strings to NULL?
#5214ClosedReq2005-08-26BLOB types do not generate TextAreas
#5233No FeedbackBug2005-08-29$fb_fieldLabels didn't work(
#5321ClosedBug2005-09-07formprocessing with multiple crosslinks bug
#5471FeedbackReq2005-09-21getValidationErrors()
#5490ClosedBug2005-09-22tinyint fields being forced to 0 when not being rendered
#5505DuplicateBug2005-09-23"processForm" -> even NOT editable boolean fields are being set to 0
#5554DuplicateBug2005-09-29selectAddEmpty don't work with Date fields
#5562BogusBug2005-09-29fieldLabels only with checkbox type
#5630Wont fixReq2005-10-08friendly label for crosslinks
#5631BogusBug2005-10-08fb_preDefElements bug with third level subform
#5664ClosedBug2005-10-11subform file field
#5682BogusBug2005-10-13required custom fields on subform
#5694ClosedBug2005-10-14Issue with date elements
#5733ClosedBug2005-10-20Only variables should be assigned by reference
#5819BogusBug2005-10-29UPDATE instead of INSERT if primary key is a linked field due to cast
#5964OpenReq2005-11-14Domain support
#5992OpenReq2005-11-17Support for defining field label as array
#6259No FeedbackBug2005-12-16crossLinking problem
#6344ClosedBug2005-12-24non-rendered boolean fields being overwritten by default
#6542BogusBug2006-01-20Both linkDisplayFields and addFormHeader don't work from DataObjects.ini
#6638OpenReqCVS2006-01-31crossLinkExtraFields can't be required
#6703No FeedbackBug1.0.0RC22006-02-06linkDisplayLevel does not work
#6733AssignedReq1.0.0RC22006-02-09Optimise queries for linked tables
#6894ClosedBug1.0.0RC22006-02-22_reorderElements unusual case
#6962ClosedBug1.0.0RC42006-02-28crossLinks are no more processed
#6973ClosedBug1.0.0RC32006-03-01Undefined offset in subform
#6980ClosedBug1.0.0RC42006-03-01processForm() saves original after preProcessFormCallback(), which is wrong
#7036ClosedBugCVS2006-03-06EnumOptions bug with MDB2
#7046BogusBug1.0.0RC42006-03-07$fb_* variables problem
#7161ClosedBug1.0.0RC42006-03-19Using "From" field name causes errors
#7164Wont fixReq1.0.0RC42006-03-20rule:checking in DB for unique entred value
#7167ClosedBug1.0.0RC42006-03-20PostgreSQL boolean values rendering problem
#7181FeedbackReqCVS2006-03-23ability to change values on submitted form
#7382SuspendedReq2006-04-12Please add DataObjects_FormBuilder doc to pear.php.net
#7445No FeedbackBug1.0.0RC42006-04-20cannot default a date element to blank
#7447OpenReq1.0.0RC42006-04-20a hideElements method would be great
#7599BogusBug1.0.0RC42006-05-10Inability to suppress submit button on submission
#7604No FeedbackBug1.0.0RC42006-05-11extraFields in crossLinks does not work
#7919ClosedReqCVS2006-06-16Different Empty Label for radio buttons
#7951BogusBug1.0.0RC42006-06-20Year Date problem
#8105ClosedBug1.0.0RC52006-07-03Add support for 'g' date element format option
#8330No FeedbackBug1.0.0RC42006-07-31Back if required fields not filled
#8484ClosedBug1.0.0RC42006-08-16Form values should be set via DB_DO get*() methods
#8544Wont fixBug1.0.0RC42006-08-23Setting elementTypeMap['datetime'] = 'text' is broken
#8625No FeedbackReq1.0.0RC42006-09-03modify getDataObjectString
#8698Wont fixBug1.0.0RC42006-09-14Integers with NULL should be set to 'null'
#8721ClosedReq1.0.0RC52006-09-17QuickForm.php additions
#10121Wont fixBug1.0.0RC62007-02-18Incorrect usage of PEAR::raiseError()
#10416BogusBug1.0.0RC62007-03-19Using $fb_fieldsToRender break the update feature
#10574ClosedBugCVS2007-03-31Line 1750
#11501No FeedbackBug1.0.0RC72007-07-02preDefGroups and rules not working
#12422ClosedDoc1.0.0RC72007-11-11FormBuilder example uses wrong options in .ini
#12424BogusReq1.0.0RC72007-11-11Support link elements for postgres
#12917ClosedReq1.0.0RC72008-01-16Enum empty option specified through enumOptions array.
#13071ClosedBug1.0.0RC72008-02-05Incorrect lowercase driver class name
#13466ClosedBug1.0.02008-03-22Make driver names __autoload friendly
#14079ClosedBug1.0.0RC72008-06-05_array2date() generates notice
#14823ClosedReqCVS2008-10-18Skip, not fail, when you are running tests
#14885DuplicateReqCVS2008-10-26Make unit tests skip, not fail
#14939OpenReq2008-11-02Per-element dateElementFormat
#16717OpenBug1.0.02009-10-20SubFormFB not constructed
#17537FeedbackBug1.0.02010-06-30crossLinks errors when using multiple links in links.ini
#17714OpenDoc2010-08-17User note that is a documentation problem
#17985ClosedBug1.0.02010-10-21package.xml is invalid
#18011OpenBug1.0.12010-10-29package.php should not be packaged
#18361OpenBug1.0.12011-03-13crossLink with value of 0 not getting checked
#18887OpenBug1.0.12011-10-01element not frozen if in a preDefGroup and not in userEditableFields
#19409BogusBug1.0.22012-05-06ID: Angosso
#19786BogusBug1.0.22013-01-15call_user_func_array at least since PHP 5.3.10 changed parameters by reference
#19931ClosedBug1.0.22013-05-03Warnings
#19963FeedbackReq1.0.22013-05-29linkDisplayField working with multi-key references