cvs: pear /Structures_DataGrid/DataGrid/DataSource DBQuery.php
| From: | Olivier Guilyardi | Date: | Thu, 22 Jun 2006 17:00:01 +0000 |
| Subject: | cvs: pear /Structures_DataGrid/DataGrid/DataSource DBQuery.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-40868@lists.php.net to get a copy of this message | ||
olivierg Thu Jun 22 17:00:01 2006 UTC
Modified files:
/pear/Structures_DataGrid/DataGrid/DataSource DBQuery.php
Log:
(very probably) fixed request #7965 'Please reintroduce sorting in DBQuery or MDB2'.
That actually was a bug caused by a typo in DB_Query::sort() - AFAICS there's no such bug in
MDB2
http://cvs.php.net/viewvc.cgi/pear/Structures_DataGrid/DataGrid/DataSource/DBQuery.php?r1=1.9&r2=1.10&diff_format=u
Index: pear/Structures_DataGrid/DataGrid/DataSource/DBQuery.php
diff -u pear/Structures_DataGrid/DataGrid/DataSource/DBQuery.php:1.9
pear/Structures_DataGrid/DataGrid/DataSource/DBQuery.php:1.10
--- pear/Structures_DataGrid/DataGrid/DataSource/DBQuery.php:1.9 Sun Apr 23 18:45:10 2006
+++ pear/Structures_DataGrid/DataGrid/DataSource/DBQuery.php Thu Jun 22 17:00:01 2006
@@ -17,7 +17,7 @@
// | Mark Wiesemann <wiesemann@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: DBQuery.php,v 1.9 2006/04/23 18:45:10 wiesemann Exp $
+// $Id: DBQuery.php,v 1.10 2006/06/22 17:00:01 olivierg Exp $
require_once 'DB.php';
require_once 'Structures/DataGrid/DataSource.php';
@@ -28,7 +28,7 @@
*
* This class is a data source driver for the PEAR::DB object
*
- * @version $Revision: 1.9 $
+ * @version $Revision: 1.10 $
* @author Andrew S. Nagy <asnagy@php.net>
* @author Mark Wiesemann <wiesemann@php.net>
* @access public
@@ -225,8 +225,8 @@
*/
function sort($sortField, $sortDir)
{
- $this->sortField = $sortField;
- $this->sortDir = $sortDir;
+ $this->_sortField = $sortField;
+ $this->_sortDir = $sortDir;
}