Patch for QuickForm
| From: | Jon Wood | Date: | Fri, 18 Apr 2003 16:19:03 +0000 |
| Subject: | Patch for QuickForm | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-15237@lists.php.net to get a copy of this message | ||
The attached patch allows users to add some description text to
quickform elements (on my current setup it displays underneath the
element, but obviously this can be changed by the renderer), I've also
implemented it for the default and array renderers, and added the extra
parameter to the two IT renderers, but not implemented it because I
don't know IT well enough.
The renderElement function now has an extra parameter ($description),
and descriptions are set using setElementDescription($element,
$description) on the Quickform object.
I've also added a setValue function to the static element, which just
calls setText, so that you can display either a static or text element
easily (I'm using it to display elements that can only be edited by some
users, but should be visible to everyone.)
Also... how to people do development on the CVS code? I keep having to
pear package, and then upgrade whenever I need to test a change... I'm
guessing there's an easier way :P
Jon