HTML/Form.php patch
| From: | Dietrich Ayala | Date: | Mon, 26 Nov 2001 16:38:01 +0000 |
| Subject: | HTML/Form.php patch | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-3114@lists.php.net to get a copy of this message | ||
currently form.php prints directly from it's methods while building the form, making it
unusable with most template systems.
this patch:
- adds method addToBuffer() which adds output to a class level var $buffer
- replaces all 'print' calls with $this->addToBuffer() calls
- renames display() to getHTML()
- makes display() a method that calls getHTML() and prints it
thanks,
dietrich