Re: Quickform suggestion: replaceElement()

From: Date: Wed, 16 Jul 2003 21:35:42 +0000
Subject: Re: Quickform suggestion: replaceElement()
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-18321@lists.php.net to get a copy of this message
<wolff@21st.de> wrote : > 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 ;-) Surprisingly ? :) I would like to see it working, it can probably be very useful extension. > 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? Good idea, we will see if we can implement that after the next release. I'll let you know. Bertrand Mansion Mamasam

« previous php.pear.dev (#18321) next »