PEAR Announce
2014-06-26 13:55:10 UTC
The new PEAR package HTML_QuickForm2-2.0.1 (stable) has been released at http://pear.php.net/.
Release notes
-------------
Bug fixes
* When using HTML_QuickForm2_DataSource_Array and its descendants elements'
updateValue() implementations now differentiate between "no value available
for an element" and "explicit null value provided for an element"
(see bug #20295). Custom DataSources may implement the new
HTML_QuickForm2_DataSource_NullAware interface to achieve the same.
* Contents of Static elements added to Repeat are no longer cleared (bug #19802)
* Client-side rules for containers within Repeat are correctly removed when
removing a repeated item (bug #19803)
* Client-side validator is always generated for a form with a Repeat having
some client-side rules on its child elements, even if Repeat is empty
* Unit tests updated to work with newer PHPUnit, prevent running tests twice
under some circumstances (see bug #19038)
Other features and changes
* Calling HTML_QuickForm2_Container_Group::setValue() will clear values of
those grouped elements that do not have a corresponding key in the passed
array. Passing a null or an empty array to setValue() will clear the values
of all grouped elements. Previous behaviour was counter-intuitive.
* Added HTML_QuickForm2_Element_Select::getOptionContainer() (request #19955)
* HTML_QuickForm2_Container_Group::setValue() properly handles a group of radio
elements (request #20103)
* HTML_QuickForm2_Element_Date::setValue() can accept an instance of DateTime
* Extracted removeErrorMessage() from removeRelatedErrors() of qf.Validator
for easier customizing of client-side errors output
Package Info
------------
PHP5 rewrite of HTML_QuickForm and HTML_QuickForm_Controller packages.
This package provides methods to create, validate and render HTML forms.
Features:
* Supports all form elements defined by HTML standard, provides several
custom elements
* Server-side and client-side validation, several common rules provided
* Multipage forms (tabbed forms and wizards)
* Pluggable elements, rules, renderers and renderer plugins
Major advantages over PHP4 version:
* Most of the package's functionality is covered by unit tests
* DOM-like API for building the form structure, new streamlined API for
elements' values handling
* Default rendering without tables (inspired by
HTML_QuickForm_Renderer_Tableless)
* Renderer plugins for elements with complex rendering needs
* Ability to chain validation rules with 'and' and 'or'
* Client-side validation can run "live" on changing the form fields,
validation errors are displayed near the fields instead of in alert()
Related Links
-------------
Package home: http://pear.php.net/package/HTML_QuickForm2
Changelog: http://pear.php.net/package/HTML_QuickForm2/download/2.0.1
Download: http://download.pear.php.net/package/HTML_QuickForm2-2.0.1.tgz
Authors
-------
Alexey Borzov (lead)
Bertrand Mansion (lead)
Release notes
-------------
Bug fixes
* When using HTML_QuickForm2_DataSource_Array and its descendants elements'
updateValue() implementations now differentiate between "no value available
for an element" and "explicit null value provided for an element"
(see bug #20295). Custom DataSources may implement the new
HTML_QuickForm2_DataSource_NullAware interface to achieve the same.
* Contents of Static elements added to Repeat are no longer cleared (bug #19802)
* Client-side rules for containers within Repeat are correctly removed when
removing a repeated item (bug #19803)
* Client-side validator is always generated for a form with a Repeat having
some client-side rules on its child elements, even if Repeat is empty
* Unit tests updated to work with newer PHPUnit, prevent running tests twice
under some circumstances (see bug #19038)
Other features and changes
* Calling HTML_QuickForm2_Container_Group::setValue() will clear values of
those grouped elements that do not have a corresponding key in the passed
array. Passing a null or an empty array to setValue() will clear the values
of all grouped elements. Previous behaviour was counter-intuitive.
* Added HTML_QuickForm2_Element_Select::getOptionContainer() (request #19955)
* HTML_QuickForm2_Container_Group::setValue() properly handles a group of radio
elements (request #20103)
* HTML_QuickForm2_Element_Date::setValue() can accept an instance of DateTime
* Extracted removeErrorMessage() from removeRelatedErrors() of qf.Validator
for easier customizing of client-side errors output
Package Info
------------
PHP5 rewrite of HTML_QuickForm and HTML_QuickForm_Controller packages.
This package provides methods to create, validate and render HTML forms.
Features:
* Supports all form elements defined by HTML standard, provides several
custom elements
* Server-side and client-side validation, several common rules provided
* Multipage forms (tabbed forms and wizards)
* Pluggable elements, rules, renderers and renderer plugins
Major advantages over PHP4 version:
* Most of the package's functionality is covered by unit tests
* DOM-like API for building the form structure, new streamlined API for
elements' values handling
* Default rendering without tables (inspired by
HTML_QuickForm_Renderer_Tableless)
* Renderer plugins for elements with complex rendering needs
* Ability to chain validation rules with 'and' and 'or'
* Client-side validation can run "live" on changing the form fields,
validation errors are displayed near the fields instead of in alert()
Related Links
-------------
Package home: http://pear.php.net/package/HTML_QuickForm2
Changelog: http://pear.php.net/package/HTML_QuickForm2/download/2.0.1
Download: http://download.pear.php.net/package/HTML_QuickForm2-2.0.1.tgz
Authors
-------
Alexey Borzov (lead)
Bertrand Mansion (lead)
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php