cvs: pear /MDB_QueryTool/QueryTool EasyJoin.php
| From: | Lorenzo Alberton | Date: | Thu, 18 Mar 2004 10:25:21 +0000 |
| Subject: | cvs: pear /MDB_QueryTool/QueryTool EasyJoin.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-17494@lists.php.net to get a copy of this message | ||
quipo Thu Mar 18 05:25:21 2004 EDT
Modified files:
/pear/MDB_QueryTool/QueryTool EasyJoin.php
Log:
call parent constructor or php5 will complain
http://cvs.php.net/diff.php/pear/MDB_QueryTool/QueryTool/EasyJoin.php?r1=1.5&r2=1.6&ty=u
Index: pear/MDB_QueryTool/QueryTool/EasyJoin.php
diff -u pear/MDB_QueryTool/QueryTool/EasyJoin.php:1.5 pear/MDB_QueryTool/QueryTool/EasyJoin.php:1.6
--- pear/MDB_QueryTool/QueryTool/EasyJoin.php:1.5 Tue Jun 17 14:55:02 2003
+++ pear/MDB_QueryTool/QueryTool/EasyJoin.php Thu Mar 18 05:25:20 2004
@@ -15,13 +15,15 @@
// | Author: Lorenzo Alberton <l.alberton at quipo.it> |
// +----------------------------------------------------------------------+
//
-// $Id: EasyJoin.php,v 1.5 2003/06/17 18:55:02 quipo Exp $
+// $Id: EasyJoin.php,v 1.6 2004/03/18 10:25:20 quipo Exp $
//
// This is just a port of DB_QueryTool, originally written by
// Wolfram Kriesing and Paolo Panto, vision:produktion <wk@visionp.de>
// All the praises go to them :)
//
-
+/**
+ * Load MDB_QueryTool_Query class
+ */
require_once 'MDB/QueryTool/Query.php';
/**
@@ -32,6 +34,15 @@
*/
class MDB_QueryTool_EasyJoin extends MDB_QueryTool_Query
{
+ /**
+ * call parent constructor
+ * @param mixed $dsn DSN string, DSN array or MDB object
+ * @param array $options
+ */
+ function __construct($dsn=false, $options=array())
+ {
+ parent::MDB_QueryTool_Query($dsn, $options);
+ }
/**
* this is the regular expression that shall be used to find a table's
@@ -109,7 +120,7 @@
}
}
//FIXXME set tables only when they are not already in the join!!!!!
-//print_r($joinTables); print '$this->addJoin('.implode(' AND
',$joinConditions).');<br>';
+//print_r($joinTables); echo '$this->addJoin('.implode(' AND
',$joinConditions).');<br />';
$this->addJoin($joinTables,implode(' AND ', $joinConditions));
}
//print '<br /> <br /> <br />';