cvs: pear /DB_DataObject/DataObject Generator.php
| From: | Alan Knowles | Date: | Wed, 12 Apr 2006 04:12:56 +0000 |
| Subject: | cvs: pear /DB_DataObject/DataObject Generator.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-39563@lists.php.net to get a copy of this message | ||
alan_k Wed Apr 12 04:12:56 2006 UTC
Modified files:
/pear/DB_DataObject/DataObject Generator.php
Log:
give derivedHookFunctions the ability to use the original input data
http://cvs.php.net/viewcvs.cgi/pear/DB_DataObject/DataObject/Generator.php?r1=1.114&r2=1.115&diff_format=u
Index: pear/DB_DataObject/DataObject/Generator.php
diff -u pear/DB_DataObject/DataObject/Generator.php:1.114
pear/DB_DataObject/DataObject/Generator.php:1.115
--- pear/DB_DataObject/DataObject/Generator.php:1.114 Thu Mar 30 03:12:52 2006
+++ pear/DB_DataObject/DataObject/Generator.php Wed Apr 12 04:12:56 2006
@@ -15,7 +15,7 @@
* @author Alan Knowles <alan@akbkhome.com>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: Generator.php,v 1.114 2006/03/30 03:12:52 alan_k Exp $
+ * @version CVS: $Id: Generator.php,v 1.115 2006/04/12 04:12:56 alan_k Exp $
* @link http://pear.php.net/package/DB_DataObject
*/
@@ -788,7 +788,7 @@
$body .= $this->_generateDefaultsFunction($this->table,$def['table']);
}
- $body .= $this->derivedHookFunctions();
+ $body .= $this->derivedHookFunctions($input);
$body .= "\n /* the code above is auto generated do not remove the tag below
*/";
$body .= "\n ###END_AUTOCODE\n";
@@ -859,7 +859,7 @@
* @access public
* @return string added to class eg. functions.
*/
- function derivedHookFunctions()
+ function derivedHookFunctions($input = "")
{
// This is so derived generator classes can generate functions
// It MUST NOT be changed here!!!