ZF-9913: Zend_Form_Element::loadDefaultDecorators should implement a fluent interface

Issue Type: Improvement Created: 2010-05-29T13:26:39.000+0000 Last Updated: 2010-11-20T09:22:56.000+0000 Status: Resolved Fix version(s): - 1.10.6 (22/Jun/10)

Reporter: Ryan Mauger (bittarman) Assignee: Ryan Mauger (bittarman) Tags: Related issues: Attachments:



[code] $element->loadDefaultDecorators()->removeDecorator('Errors') [code]

when simply removing one decorator (for example for use with the formErrors decorator) this is simpler than setting the whole stack. It is also more consistent with other Zend_Form / Zend_Form_Element methods


Posted by Christian Albrecht (alab) on 2010-05-29T14:11:03.000+0000

Ryan would you do this as well in: ./Form.php ./Form/SubForm.php ./Form/Element/Captcha.php ./Form/Element/Image.php ./Form/Element/File.php ./Form/Element/Submit.php ./Form/Element/Radio.php ./Form/DisplayGroup.php

Posted by Ryan Mauger (bittarman) on 2010-05-30T08:14:55.000+0000

Fixed in trunk on r22328 Merged to release on r22329

Posted by Christian Albrecht (alab) on 2010-06-02T17:51:14.000+0000

Applied to Zend_Form as well to pass the new UnitTest ;D in trunk r22352 and 1.10 release branch

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.