Zend Framework

Zend_Form_Element::loadDefaultDecorators should implement a fluent interface

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.10.6
  • Component/s: None
  • Labels:
    None

Description

Usecase:

[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

Activity

Hide
Christian Albrecht added a comment - - edited

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

Show
Christian Albrecht added a comment - - edited 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
Hide
Ryan Mauger added a comment -

Fixed in trunk on r22328
Merged to release on r22329

Show
Ryan Mauger added a comment - Fixed in trunk on r22328 Merged to release on r22329
Hide
Christian Albrecht added a comment -

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

Show
Christian Albrecht added a comment - Applied to Zend_Form as well to pass the new UnitTest ;D in trunk r22352 and 1.10 release branch

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: