Issues

ZF-11886: removeDecorators(array)

Issue Type: Improvement Created: 2011-11-11T17:09:50.000+0000 Last Updated: 2011-11-30T17:40:50.000+0000 Status: Open Fix version(s): Reporter: Guilherme Henrique de Oliveira (ghophp) Assignee: Christian Albrecht (alab) Tags: - Zend_Form

  • state:need-feedback
  • zend-form-element

Related issues: Attachments:

Description

I suggest on Zend_Form_Element a removeDecorators(array), actually we just have removeDecorator(string), if i want to remove more than one i have to recall the function few times.

Comments

Posted by Chris Atkinson (layke) on 2011-11-11T18:54:19.000+0000

Wouldn't it just make sense to use setDecorators at that point. This would probably just complicate things. Especially how would you remove particular decorators that cannot be referred to by their decorator name, (since they have been used twice).

Posted by Guilherme Henrique de Oliveira (ghophp) on 2011-11-11T19:32:18.000+0000

a decorator can be always referred by name, the question is in case i have for example 50 decorators, and i don't want 2 of those, instead make a setDecorators() with a lot of params (or something like), i just remove those 2 with removeDecorators(array('foo', 'bar')).

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts