cvs: pear /Structures_DataGrid/DataGrid/DataSource DBQuery.php
| From: | Olivier Guilyardi | Date: | Fri, 23 Jun 2006 21:33:10 +0000 |
| Subject: | cvs: pear /Structures_DataGrid/DataGrid/DataSource DBQuery.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-40881@lists.php.net to get a copy of this message | ||
olivierg Fri Jun 23 21:33:10 2006 UTC
Modified files:
/pear/Structures_DataGrid/DataGrid/DataSource DBQuery.php
Log:
updated docblock
http://cvs.php.net/viewvc.cgi/pear/Structures_DataGrid/DataGrid/DataSource/DBQuery.php?r1=1.11&r2=1.12&diff_format=u
Index: pear/Structures_DataGrid/DataGrid/DataSource/DBQuery.php
diff -u pear/Structures_DataGrid/DataGrid/DataSource/DBQuery.php:1.11
pear/Structures_DataGrid/DataGrid/DataSource/DBQuery.php:1.12
--- pear/Structures_DataGrid/DataGrid/DataSource/DBQuery.php:1.11 Fri Jun 23 20:55:57 2006
+++ pear/Structures_DataGrid/DataGrid/DataSource/DBQuery.php Fri Jun 23 21:33:10 2006
@@ -17,7 +17,7 @@
// | Mark Wiesemann <wiesemann@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: DBQuery.php,v 1.11 2006/06/23 20:55:57 olivierg Exp $
+// $Id: DBQuery.php,v 1.12 2006/06/23 21:33:10 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.11 $
+ * @version $Revision: 1.12 $
* @author Andrew S. Nagy <asnagy@php.net>
* @author Mark Wiesemann <wiesemann@php.net>
* @access public
@@ -219,8 +219,11 @@
* This can only be called prior to the fetch method.
*
* @access public
- * @param string $sortField Field to sort by
+ * @param mixed $sortSpec A single field (string) to sort by, or a
+ * sort specification array of the form:
+ * array(field => direction, ...)
* @param string $sortDir Sort direction: 'ASC' or 'DESC'
+ * This is ignored if $sortDesc is an array
*/
function sort($sortSpec, $sortDir = 'ASC')
{