cvs: pear /DB_Table/DB/Table QuickForm.php
| From: | Mark Wiesemann | Date: | Wed, 18 Jan 2006 20:53:13 +0000 |
| Subject: | cvs: pear /DB_Table/DB/Table QuickForm.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-37640@lists.php.net to get a copy of this message | ||
wiesemann Wed Jan 18 20:53:13 2006 UTC
Modified files:
/pear/DB_Table/DB/Table QuickForm.php
Log:
fix static usage of createForm ($this isnt available then) and remove useless parameter
http://cvs.php.net/viewcvs.cgi/pear/DB_Table/DB/Table/QuickForm.php?r1=1.32&r2=1.33&diff_format=u
Index: pear/DB_Table/DB/Table/QuickForm.php
diff -u pear/DB_Table/DB/Table/QuickForm.php:1.32 pear/DB_Table/DB/Table/QuickForm.php:1.33
--- pear/DB_Table/DB/Table/QuickForm.php:1.32 Wed Nov 23 16:11:44 2005
+++ pear/DB_Table/DB/Table/QuickForm.php Wed Jan 18 20:53:13 2006
@@ -12,7 +12,7 @@
*
* @license http://www.gnu.org/copyleft/lesser.html LGPL
*
-* @version $Id: QuickForm.php,v 1.32 2005/11/23 16:11:44 wiesemann Exp $
+* @version $Id: QuickForm.php,v 1.33 2006/01/18 20:53:13 wiesemann Exp $
*
*/
@@ -154,10 +154,15 @@
*
*/
- function &createForm($args = array(), $clientValidate = null)
+ function &createForm($args = array())
{
- $formName = isset($args['formName'])
- ? $args['formName'] : $this->table;
+ if (isset($args['formName'])) {
+ $formName = $args['formName'];
+ } elseif (isset($this)) {
+ $formName = $this->table;
+ } else {
+ $formName = '_db_table_form_';
+ }
$method = isset($args['method'])
? $args['method'] : 'post';