[ANNOUNCEMENT] DB_DataObject_FormBuilder-0.11.1 (beta) Released.
| From: | PEAR Announce | Date: | Sat, 08 Jan 2005 23:55:23 +0000 |
| Subject: | [ANNOUNCEMENT] DB_DataObject_FormBuilder-0.11.1 (beta) Released. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-16838@lists.php.net to get a copy of this message | ||
The new PEAR package DB_DataObject_FormBuilder-0.11.1 (beta) has been released at http://pear.php.net/.
Release notes
-------------
0.11.1 adds a file missing in the 0.11.0 release
Lots of new options, bug fixes, and a few changes. Check the wiki for more detailed info on new
options.
fixes:
- Re-added support for timeElementFormat option
- Re-added "copy" support for dbDateFormat (although it is not currently used)
- Auto-generated form name is now always lowercase to ensure identical behaviour in PHP4 and PHP5
- Fixed hidePrimaryKey issues when set in the ini file
- Moved the rest of the driver-specific to the QuickForm driver
- Changed crossLink and tripleLink code to use setDefaults (bug #2913)
- Fix tripleLinks not holding their value after a submit (related to bug #2913)
- Added support for all date format types specified in bug# 2375
NOTE: 'l' and 'D' types are supported by _date2Array, but not _array2Date.
This means they can be output, but upon submission they do nothing.
- Fixed freezing problems with crossLinks and tripleLinks (bug #2915)
A new QuickForm element type has been created for this. It is in
DB/DataObject/FormBuilder/QuickForm/ElementTable.php. This element creates an HTML_Table with rows
of elements. The table may or may not have row and column headers. Any QF element may be in each
cell.
- Fixed bug where time elements were created with 'date' type options (this should change
nothing unless you use elementTypeMap)
- 0 as primary key no longer causes unwanted insert (bug #2979)
- Fixed elementNamePrefix and elementNamePostfix when used with crosslink and triplelink and dates
[ and ] are no longer allowed in the prefix and postfix
changes:
- The Primary Key is now retrieved using a new internal method (_getPrimaryKey) which looks first in
the _primary_key property of the DataObject, then tries sequenceKey(), then the first element in
keys()
- Added patch to "sync" crosslinks and triplelinks instead of deleting all and recreating
(Bug #2841)
- The numeric rule will only be set if FB creates the element (bug #3042)
- Renamed getDataObjectSelectDisplayValue() to getDataObjectString()
new:
- Added multi-select support to QF driver
- Re-added multi-select support for crossLinks
- Added casting of '' to NULL for link fields (for selectAddEmpty)
- Added automatic entry of an empty option for link fields which are not DB_DATAOBJECT_NOTNULL
- Added selectAddEmpty support for enum fields
- Enum fields will automatically have an empty option if they are allowed to be NULL (same as for
links)
- Added a new crossLinkExtraFields option for crossLinks which allows editing of extra fields in the
crosslink table
- Added prepareLinkedDataObject callback for DO to customize link options (bug #2958)
- Added elementTypeAttributes and fieldAttributes configuration options to QF driver
- Added a new option: useCallTimePassByReference which defaults to false (bug #2658)
- Added support for reverseLinks (request #2889)
- Added support for boolean fields. Boolean fields are rendered as checkboxes
- Added new option booleanFields
- getDataObjectString() is now statically callable
If you are upgrading from a pre-0.10.0 version, read the 0.10.0 and 0.10.1 release notes!
Package Info
-------------
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.
Related Links
-------------
Package home: http://pear.php.net/package/DB_DataObject_FormBuilder
Changelog: http://pear.php.net/package/DB_DataObject_FormBuilder/download/0.11.1
Download: http://pear.php.net/get/DB_DataObject_FormBuilder-0.11.1.tgz
Authors
-------------
Norbert Mocsnik (developer)
Markus Wolff <wolff@21st.de> (lead)
Justin Patrin <papercrane@reversefold.com> (lead)