Quickform suggestion: replaceElement()
| From: | Markus Wolff | Date: | Wed, 16 Jul 2003 19:12:42 +0000 |
| Subject: | Quickform suggestion: replaceElement() | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-18304@lists.php.net to get a copy of this message | ||
Hi Bertrand and Alexey,
I´m currently writing an extension for DB_DataObject that can automagically generate QuickForm objects from auto-generated DataObject classes, which works surprisingly well until now ;-)
However, on some occasions it might happen that a user isn´t happy with one of the auto-generated form elements, so that he wants to replace that one element manually.
If I just do removeElement() and then addElement() again, the replaced element is now the last in the element list, which can look a little silly with dynamic templates.
So I thought, a replaceElement() method would be nice to have in QuickForm, what do you guys think?
Regards,
Markus