cvs: pear /Structures_DataGrid/DataGrid/Renderer HTMLTable.php
| From: | Andrew Nagy | Date: | Thu, 29 Apr 2004 18:34:18 +0000 |
| Subject: | cvs: pear /Structures_DataGrid/DataGrid/Renderer HTMLTable.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-18966@lists.php.net to get a copy of this message | ||
asnagy Thu Apr 29 14:34:18 2004 EDT
Modified files:
/pear/Structures_DataGrid/DataGrid/Renderer HTMLTable.php
Log:
Fixed bug with setting pager options
http://cvs.php.net/diff.php/pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php?r1=1.7&r2=1.8&ty=u
Index: pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php
diff -u pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.7
pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.8
--- pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php:1.7 Tue Apr 27 14:58:46 2004
+++ pear/Structures_DataGrid/DataGrid/Renderer/HTMLTable.php Thu Apr 29 14:34:18 2004
@@ -16,7 +16,7 @@
// | Author: Andrew Nagy <asnagy@webitecture.org> |
// +----------------------------------------------------------------------+
//
-// $Id: HTMLTable.php,v 1.7 2004/04/27 18:58:46 asnagy Exp $
+// $Id: HTMLTable.php,v 1.8 2004/04/29 18:34:18 asnagy Exp $
require_once 'HTML/Table.php';
require_once 'Pager/Pager.php';
@@ -24,7 +24,7 @@
/**
* Structures_DataGrid_Renderer_HTMLTable Class
*
- * @version $Revision: 1.7 $
+ * @version $Revision: 1.8 $
* @author Andrew S. Nagy <asnagy@webitecture.org>
* @access public
* @package Structures_DataGrid
@@ -334,18 +334,16 @@
* @return void
* @see HTML::Pager
*/
- function getPaging($mode = 'pager', $separator = '|', $prev =
'<<',
- $next = '>>', $delta = null)
+ function getPaging($mode = 'Sliding', $separator = '|', $prev =
'<<',
+ $next = '>>', $delta = 5)
{
// Generate Paging
- $this->_dg->buildPaging();
-
- // Set additional paging options
- $options = array('delta' => $delta,
+ $options = array('mode' => $mode,
+ 'delta' => $delta,
'separator' => $separator,
'prevImg' => $prev,
'nextImg' => $next);
- $this->_dg->pager->_setOptions($options);
+ $this->_dg->buildPaging($options);
// Return paging html
return $this->_dg->pager->links;