cvs: pear /DB_DataObject/DataObject Generator.php createTables.php
| From: | Alan Knowles | Date: | Thu, 02 Jan 2003 05:58:47 +0000 |
| Subject: | cvs: pear /DB_DataObject/DataObject Generator.php createTables.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8039@lists.php.net to get a copy of this message | ||
alan_k Thu Jan 2 00:58:47 2003 EDT
Modified files:
/pear/DB_DataObject/DataObject createTables.php Generator.php
Log:
changes to support globals rather than static calls, removed relative path stuff - it doesnt work
that well..
Index: pear/DB_DataObject/DataObject/createTables.php
diff -u pear/DB_DataObject/DataObject/createTables.php:1.14
pear/DB_DataObject/DataObject/createTables.php:1.15
--- pear/DB_DataObject/DataObject/createTables.php:1.14 Mon Dec 23 23:01:30 2002
+++ pear/DB_DataObject/DataObject/createTables.php Thu Jan 2 00:58:47 2003
@@ -16,12 +16,10 @@
// | Author: Alan Knowles <alan@akbkhome.com>
// +----------------------------------------------------------------------+
//
-// $Id: createTables.php,v 1.14 2002/12/24 04:01:30 alan_k Exp $
+// $Id: createTables.php,v 1.15 2003/01/02 05:58:47 alan_k Exp $
//
-// require once will include relative paths!!!
-require_once dirname(__FILE__) . '/../DataObject.php';
-require_once dirname(__FILE__) . '/Generator.php';
+require_once 'DB/DataObject/Generator.php';
if (!ini_get('register_argc_argv')) {
PEAR::raiseError("\nERROR: You must turn register_argc_argv On in you php.ini file for
this to work\neg.\n\nregister_argc_argv = On\n\n", null, PEAR_ERROR_DIE);
Index: pear/DB_DataObject/DataObject/Generator.php
diff -u pear/DB_DataObject/DataObject/Generator.php:1.20
pear/DB_DataObject/DataObject/Generator.php:1.21
--- pear/DB_DataObject/DataObject/Generator.php:1.20 Mon Dec 23 23:01:30 2002
+++ pear/DB_DataObject/DataObject/Generator.php Thu Jan 2 00:58:47 2003
@@ -15,7 +15,7 @@
// | Author: Alan Knowles <alan@akbkhome.com>
// +----------------------------------------------------------------------+
//
-// $Id: Generator.php,v 1.20 2002/12/24 04:01:30 alan_k Exp $
+// $Id: Generator.php,v 1.21 2003/01/02 05:58:47 alan_k Exp $
//
/* generation tools for DB_DataObject
*
@@ -141,9 +141,9 @@
function _createTableList()
{
$this->_connect();
- $connections =
&PEAR::getStaticProperty('DB_DataObject','connections');
-
- $__DB= &$connections[$this->_database_dsn_md5];
+
+
+ $__DB=
&$GLOBALS['_DB_DATAOBJECT']['CONNECITONS'][$this->_database_dsn_md5];
$this->tables = $__DB->getListOf('tables');