Home » Structures » Structures_DataGrid
Render a data table with automatic pagination and sorting
This package is unmaintained.
Download latest release 0.9.3 (archived versions might be outdated)
License: New BSD
Description
This package provides a toolkit to generate data tables in HTML, CSV,
Excel, XML, Smarty, and other formats.
It retrieves data from a variety of data sources, including SQL, CSV,
XML, PDO, DB_DataObject, DB_Table, and others.
It can transparently page and sort the data, through optimized database
queries, by parsing/generating GET, POST requests and REST-like urls.
It is designed with modularity and extensibility in mind, using drivers
for all rendering and datasource formats.
Documentation
Maintainers
- Andrew S. Nagy (asnagy) — lead, inactive
- Olivier Guilyardi (olivierg) — lead, active
- Mark Wiesemann (wiesemann) — lead, active
Dependencies
Required
- PHP (>= 5.0.0)
- PEAR Installer (>= 1.6.0)
Optional
- PHPUnit (>= 1.3.2)
- File (>= 1.3.0)
- Net_URL_Mapper (>= 0.9.0)
- sqlite (extension)
Releases
- 0.9.3 (beta, 2012-01-27)
Release notes
License: New BSD
QA release
Bug #19251 Missing 'Structures/DataGrid/Exception.php' - 0.9.2 (beta, 2012-01-26)
- 0.9.1dev1 (beta, 2010-10-10)
- 0.9.0 (beta, 2007-12-18)
- 0.8.3 (beta, 2007-04-12)
- 0.8.2 (beta, 2007-03-11)
- 0.8.1 (beta, 2007-01-15)
- 0.8.0 (beta, 2006-12-16)
- 0.7.2 (beta, 2006-10-17)
- 0.7.1 (beta, 2006-06-19)
- 0.6.3 (beta, 2005-10-25)
- 0.6.2 (beta, 2005-01-26)
- 0.6.0 (beta, 2004-12-21)
- 0.5.3 (alpha, 2004-08-10)
- 0.5.2 (alpha, 2004-08-10)
- 0.5.1 (alpha, 2004-06-25)
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #1023 | Bogus | Bug | 2004-03-16 | Call-time pass-by-reference | |
| #1024 | Closed | Bug | 2004-03-16 | it's rendering empty lines | |
| #1025 | Closed | Bug | 2004-03-16 | SUGGESTION: use pager and data looper | |
| #1063 | Closed | Bug | 2004-03-24 | toHTML not supported | |
| #1064 | Suspended | Bug | 2004-03-24 | DataObject not fully supported | |
| #1065 | Closed | Bug | 2004-03-24 | DataGrid - Package Directory Structure | |
| #1181 | Closed | Bug | 2004-04-11 | Query string is not keep in data ordering | |
| #1371 | Closed | Bug | 2004-05-09 | Pager Factory | |
| #1501 | Closed | Bug | 2004-05-26 | Feature Requests and Code | |
| #1544 | Duplicate | Bug | 2004-06-02 | undefined variable $result | |
| #1545 | Closed | Bug | 2004-06-02 | Undefined offset | |
| #1584 | Closed | Bug | 2004-06-08 | Column formatter does not work due to a typo | |
| #1593 | No Feedback | Bug | 2004-06-09 | Error in Core.php with multiple instances | |
| #1739 | Closed | Bug | 2004-06-29 | Not working Structures_DataGrid_Record_DataObject | |
| #2003 | No Feedback | Bug | 2004-07-28 | Undefined variable: | |
| #2027 | Closed | Bug | 2004-07-30 | Pager shouldn't be require'd by default | |
| #2102 | Closed | Req | 2004-08-10 | render -> toHtml() or add getTable() method | |
| #2123 | Closed | Bug | 2004-08-14 | Record_DataObject does not recognize DataObject's grand-children | |
| #2124 | Closed | Bug | 2004-08-14 | Record_DataObject does not handle $fb_fieldsToRender | |
| #2125 | Closed | Bug | 2004-08-15 | GET parameters are intrusive and forbid using several DataGrids | |
| #2128 | Closed | Bug | 2004-08-15 | Record_DataObject does not return an error when passed junk | |
| #2438 | Closed | Bug | 2004-10-03 | toHTML does not work as expected | |
| #2499 | Closed | Bug | 2004-10-11 | Ampersands don't validate | |
| #2500 | Closed | Bug | 2004-10-11 | Filter function example code contains typo | |
| #2501 | Closed | Req | 2004-10-11 | Ordering indicator | |
| #2505 | Closed | Bug | 2004-10-11 | Parameter in filter feature doesn't work | |
| #2509 | Closed | Bug | 2004-10-11 | Unnecessary bold tag added | |
| #2871 | Closed | Bug | 2004-12-01 | $this->_options['fields'] doesn't get generated when using bind() and DB result | |
| #3028 | Closed | Bug | 2004-12-26 | XUL Renderer does not convert XML entities | |
| #3071 | Bogus | Bug | 2004-12-30 | DataGrid doesnt work in PHP5 | |
| #3086 | Closed | Bug | 2005-01-03 | Typo in Core.php | |
| #3088 | Closed | Bug | 2005-01-03 | Call to $this in static method. | |
| #3089 | Bogus | Req | 2005-01-03 | Structures_DataGrid_Column::formatter() does not support static method callback | |
| #3097 | Closed | Bug | 2005-01-04 | typo in HTMLTable renderer | |
| #3139 | Closed | Req | 2005-01-08 | columnformatter does not allow extra whitespace | |
| #3140 | Closed | Req | 2005-01-08 | Add various FormBuilder inspired options to DataObject DataSource | |
| #3151 | Closed | Bug | 2005-01-10 | is_subclass_of | |
| #3156 | Closed | Bug | 2005-01-10 | HTMLTable renderer does nor print last page if # of record is < max size | |
| #3157 | Closed | Req | 2005-01-10 | Use get* method(s) if available | |
| #3170 | No Feedback | Req | 2005-01-11 | Add option for limiting field length | |
| #3188 | Closed | Req | 2005-01-13 | Can the callbacks pass the DataGrid_Column? | |
| #3191 | Closed | Bug | 2005-01-13 | Structures_DataGrid_Renderer_Smarty::setTemplate() | |
| #3229 | Bogus | Req | 2005-01-18 | Add ability to add Smarty template variables | |
| #3244 | Closed | Bug | 2005-01-19 | Paging not working anymore | |
| #3274 | Closed | Bug | 2005-01-23 | Extra fields no longer available | |
| #3304 | Closed | Bug | 2005-01-26 | requestPrefix still broken | |
| #3305 | Closed | Bug | 2005-01-26 | Syntax error in 0.6.1 after install | |
| #3306 | Closed | Bug | 2005-01-26 | Can't addColumn() after bind()'ing | |
| #3314 | No Feedback | Req | 2005-01-27 | setRequestPrefix | |
| #3316 | Closed | Req | 2005-01-27 | New datasource option : sort_default | |
| #3523 | Closed | Req | 2005-02-18 | Allow custom headers ahead of header row | |
| #3588 | Closed | Req | 2005-02-24 | Handle commas and doubel quotes in CSVs | |
| #3601 | Closed | Bug | 2005-02-25 | htmlentities needed for data | |
| #3607 | Closed | Bug | 2005-02-26 | Binding to null datasets causes fatal error | |
| #3617 | Closed | Bug | 2005-02-27 | array_multisort() - Argument #3 is expected to be an array | |
| #3715 | Closed | Bug | 2005-03-05 | Emtpy parameter list for formatter gives warning | |
| #3769 | Closed | Bug | 2005-03-10 | get* method not called | |
| #3781 | Closed | Bug | 2005-03-11 | wrong filename required in CSV.php | |
| #3787 | No Feedback | Bug | 2005-03-12 | Pager uses incorrect number of pages | |
| #3847 | Closed | Bug | 2005-03-16 | DB DataSource emits a notice if no records returned | |
| #3859 | Closed | Bug | 2005-03-17 | Setting useHeader as false still renders the header | |
| #3887 | Duplicate | Bug | 2005-03-19 | notice php error into DataGrid :: Column.php file | |
| #4022 | Closed | Bug | 2005-03-31 | Record isn't passed into the formatter if () is not in the formatter spec | |
| #4046 | Bogus | Req | 2005-04-04 | Use an object to define a "more intuitive" column formatter? | |
| #4108 | No Feedback | Req | 2005-04-09 | sort national character | |
| #4171 | Bogus | Bug | 2005-04-17 | get{$field} feature in datagrid bug | |
| #4254 | Closed | Req | 2005-05-01 | New DataSource driver (DB_Table) | |
| #4350 | Closed | Bug | 2005-05-15 | Structures_DataGrid_Renderer_XML constructor needs variable by reference | |
| #4375 | Closed | Bug | 2005-05-18 | Can't change colum links | |
| #4379 | Closed | Req | 2005-05-18 | New DataSource driver (DBQuery) | |
| #4394 | Duplicate | Bug | 2005-05-20 | Wrong include path in CSV.php | |
| #4403 | Closed | Bug | 2005-05-21 | Structures_DataGrid_sortRecordSet | |
| #4415 | Closed | Bug | 2005-05-24 | Docs directory goes into wrong directory | |
| #4416 | Closed | Req | 2005-05-24 | Add "informative" functions to Core.php | |
| #4421 | Closed | Bug | 2005-05-24 | DataObject driver raises an error when link fields not set | |
| #4434 | No Feedback | Req | 2005-05-25 | In some instances the fields in the record will be limited to displayed columns | |
| #4454 | Duplicate | Bug | 2005-05-27 | No way to augment auto-generated columns with user defined columns | |
| #4497 | Closed | Req | 2005-05-31 | New feature , flexy datagrid renderer | |
| #4503 | Closed | Bug | 2005-06-01 | CVS version of Array.php (1.13) does not count entries correctly | |
| #4521 | Closed | Bug | 2005-06-03 | Pager get's wrong value if there is no row limit | |
| #4527 | Closed | Bug | 2005-06-04 | allowEmptyRows adds one row too much | |
| #4557 | Closed | Bug | 2005-06-08 | Missing header in XLS renderer | |
| #4558 | Closed | Req | 2005-06-08 | XLS renderer: add possibility to write spreadsheet to file | |
| #4565 | Closed | Req | 2005-06-09 | Multiple field sort and record grouping | |
| #4653 | Closed | Req | 2005-06-21 | Add Sub-Record displaying capabilities | |
| #4675 | Closed | Req | 2005-06-24 | add option to specify attributes for header row | |
| #4709 | Closed | Req | 2005-06-29 | add <thead>, <tfoot>, <tbody> to HTMLTable renderer | |
| #4862 | Bogus | Bug | 2005-07-19 | Structures_DataGrid crashes PHP on object creation | |
| #4863 | Closed | Bug | 2005-07-19 | Missing variable initialization | |
| #4872 | Closed | Bug | 2005-07-20 | Notice caused on formatter | |
| #4874 | Closed | Bug | 2005-07-21 | DB_DataObject getter function naming problem | |
| #4891 | Closed | Req | 2005-07-22 | colums callback changing parameter | |
| #5076 | Closed | Req | 2005-08-12 | Add PDO Driver for DataGrid | |
| #5246 | Closed | Req | 2005-08-30 | Allow to append and/or prepend columns | |
| #5255 | Closed | Bug | 2005-08-31 | Instantiating the class kills the page | |
| #5292 | Closed | Bug | 2005-09-04 | Header links are created incorrectly | |
| #5298 | Closed | Req | 2005-09-05 | new class for custom table headers and footers | |
| #5300 | Closed | Bug | 2005-09-05 | Some PHP notices shows when an callback function is used for col formatting | |
| #5327 | Closed | Req | 2005-09-07 | Get rid of the extra space after the delimter when using CSV renderer | |
| #5328 | Bogus | Bug | 2005-09-07 | DataGrid Autofill Does Not Take Precedence Over Formatter | |
| #5499 | Bogus | Bug | 2005-09-22 | DB_Dataobject getMethods called improperly | |
| #5534 | Bogus | Bug | 2005-09-27 | Bad Path to include file | |
| #5535 | Closed | Bug | 2005-09-27 | XLS bad Column check | |
| #5565 | Wont fix | Req | 2005-09-29 | A new way to add Columns | |
| #5585 | Closed | Req | 2005-10-03 | Add customize option when generate_columns = true | |
| #5606 | Bogus | Bug | 2005-10-05 | Structures_DataGrid fails sorting on joined tables | |
| #5723 | Closed | Bug | 2005-10-19 | Smarty Renderer Error | |
| #5758 | Closed | Req | 2005-10-23 | Extra parameters for Structures_DataGrid_Column::formatter() callback | |
| #5806 | Closed | Req | 2005-10-28 | XLS formatage des header automatique | |
| #5808 | Closed | Req | 2005-10-28 | XLS rendering | |
| #5829 | Closed | Bug | 2005-10-31 | SDG 0.6.3 htmlentities make multibyte char unreadable | |
| #5838 | Closed | Req | 2005-10-31 | Reversion of: Bug #3601 | |
| #5858 | Closed | Bug | 2005-11-03 | do not use @ before include_once | |
| #5859 | Closed | Req | 2005-11-03 | New renderer driver interface | |
| #5886 | Closed | Req | 2005-11-07 | Passing default-encoding to htmlentities | |
| #6031 | Closed | Bug | 2005-11-21 | charset GB2312 display not correctly | |
| #6032 | Bogus | Bug | 2005-11-21 | DataSource/DataObject.php line 141 lost a "=" | |
| #6151 | Closed | Req | 2005-12-05 | Need to encode URL correctly in HTMLTable renderer | |
| #6222 | Closed | Req | 2005-12-11 | Add more paging support to Smarty renderer | |
| #6450 | Closed | Bug | 2006-01-09 | sortRecordSet does not work if called after bind | |
| #6522 | Wont fix | Req | 2006-01-18 | Fix to determine proper row count instead of guessing | |
| #6582 | Closed | Bug | - | 2006-01-25 | malfunction sort |
| #6607 | Closed | Req | 2006-01-27 | Support for table caption in table renderer | |
| #6621 | Closed | Req | 0.6.3 | 2006-01-29 | get reference to column by name |
| #6624 | Closed | Bug | 0.6.3 | 2006-01-29 | formatter doesn't handle parameters and object methods at the same time |
| #6670 | Closed | Bug | 0.6.3 | 2006-02-02 | renderer_smarty can't display template (fix!) |
| #6720 | Closed | Req | 0.6.3 | 2006-02-07 | formatter with array parameters |
| #6779 | Closed | Bug | 0.6.3 | 2006-02-14 | sort bug |
| #7039 | Duplicate | Bug | CVS | 2006-03-06 | sortRecordSet with an array does not work |
| #7115 | Closed | Bug | 2006-03-13 | Link to Trackback tutorial does not work | |
| #7150 | Closed | Bug | 0.6.3 | 2006-03-18 | Sorting tabular structure doesn't work |
| #7151 | Bogus | Bug | 0.6.3 | 2006-03-18 | Missing HTML Directory |
| #7199 | Closed | Req | 0.6.3 | 2006-03-24 | Source Type Detection Fails on XML |
| #7333 | Closed | Bug | CVS | 2006-04-07 | Wrong params for work with MDB2 datasource |
| #7366 | Closed | Bug | 0.6.3 | 2006-04-11 | Check if $column->fieldName is NULL |
| #7521 | Closed | Bug | 2006-04-28 | Unknown Class passed Error for DataSource.php | |
| #7534 | Closed | Bug | 0.6.3 | 2006-05-01 | XLS Character encoding support |
| #7606 | Closed | Bug | 0.6.3 | 2006-05-11 | DataGrid Renderer CSV |
| #7627 | Closed | Bug | 0.6.3 | 2006-05-15 | Bad docblock for Structures_DataGrid_Column constructor |
| #7710 | Closed | Bug | CVS | 2006-05-23 | bind() interferes with rendering |
| #7746 | Closed | Bug | 0.6.3 | 2006-05-29 | Doc Complex example uses CVS features |
| #7848 | Closed | Req | CVS | 2006-06-09 | Rendering code review and corrections |
| #7925 | Closed | Bug | CVS | 2006-06-16 | formatter args ignored in Column->formatter() |
| #7927 | Closed | Req | CVS | 2006-06-16 | pass row and col through to formatter function |
| #8004 | Bogus | Req | 0.7.1 | 2006-06-26 | Recordset array gets changed from assoc to numbered |
| #8005 | Closed | Bug | 0.7.1 | 2006-06-26 | options from fill arent being passed through |
| #8040 | Wont fix | Req | 0.7.1 | 2006-06-26 | Header Column Formatter |
| #8041 | Closed | Req | 0.7.1 | 2006-06-26 | Row Formatter / Color Switching |
| #8061 | Closed | Req | 0.7.1 | 2006-06-28 | Get data as an array |
| #8065 | Wont fix | Req | 0.7.1 | 2006-06-29 | _detectSourceType(): CSV |
| #8089 | Closed | Req | CVS | 2006-06-30 | Comment review |
| #8090 | Closed | Req | CVS | 2006-06-30 | Questions after Code Review |
| #8091 | Bogus | Req | CVS | 2006-06-30 | User defined formatters with automatically generated columns |
| #8210 | Closed | Bug | 0.7.1 | 2006-07-13 | documented function getDataSource doesn't exist |
| #8317 | Wont fix | Req | 0.7.1 | 2006-07-28 | natural sort |
| #8320 | Closed | Req | 0.7.1 | 2006-07-29 | new methode removeColumn() for existing addColumn() |
| #8353 | Wont fix | Req | 0.7.1 | 2006-08-03 | A group by column would be very useful |
| #8392 | Closed | Bug | 0.7.1 | 2006-08-08 | Handle sorting for multiple tables/page |
| #8490 | Wont fix | Req | CVS | 2006-08-17 | DataSource to produce a summary of the content of a DataObject |
| #8491 | Closed | Bug | CVS | 2006-08-17 | Minor comment change |
| #8651 | Bogus | Bug | 0.7.1 | 2006-09-07 | Renderer HTMLTable_noHtmlEnt not installed |
| #8792 | Bogus | Req | 0.7.1 | 2006-09-26 | Use with Pager_Wrapper? |
| #9121 | Closed | Bug | CVS | 2006-10-21 | Use htmlspecialchars when you use PHP_SELF |
| #9160 | Closed | Doc | 2006-10-25 | wrong documentation | |
| #9376 | Closed | Bug | 0.7.2 | 2006-11-18 | Error at line 673 |
| #9444 | Wont fix | Req | 0.7.2 | 2006-11-24 | Sorting by fields not added as column |
| #9566 | Closed | Req | 0.7.2 | 2006-12-07 | Get defined columns |
| #9578 | Duplicate | Bug | 0.7.2 | 2006-12-07 | setRequestPrefix Broken |
| #9579 | Closed | Bug | 0.7.2 | 2006-12-07 | New Warnings Showing up |
| #9820 | Closed | Bug | 0.8.0 | 2007-01-13 | Unsupported operand types |
| #9873 | Closed | Bug | 2007-01-18 | Structures_DataGrid FAQ example misleading | |
| #9992 | Closed | Bug | 0.8.1 | 2007-01-31 | orderBy=0 is lost in _parseHttpRequest() |
| #9994 | Closed | Req | 0.8.1 | 2007-01-31 | Clean URLs and parsing HTTP requests with Seagull |
| #9997 | Closed | Doc | 0.8.1 | 2007-02-01 | API change not mentioned in release notes |
| #10213 | Closed | Bug | 0.8.1 | 2007-02-28 | Non-static call in static dataSourceFactory method |
| #10299 | Bogus | Bug | 0.8.1 | 2007-03-07 | Multiple datagrids |
| #10590 | Closed | Bug | 0.8.2 | 2007-04-02 | removeColumn may fail in php4 |
| #11398 | Bogus | Req | 0.8.3 | 2007-06-21 | Renaming an existing column fieldName |
| #12254 | Bogus | Bug | 2007-10-16 | Sorting tables when using Oracle Database does not work | |
| #12885 | Open | Doc | 0.9.0 | 2008-01-11 | ordre des parametres inversé |
| #13025 | Closed | Bug | 0.9.0 | 2008-01-31 | Quote Identifier incorrect when dealing with table.field |
| #13575 | Closed | Doc | 0.9.0 | 2008-04-03 | setDefaultSort should appear prior to bind in complex example |
| #14078 | Closed | Bug | 0.9.0 | 2008-06-05 | PEAR::isError not returned when SQL fails |
| #14269 | Open | Req | CVS | 2008-06-30 | Optimize subquery detection |
| #14427 | Closed | Bug | 0.9.0 | 2008-07-31 | Empty SQL-Result + Array_Merge |
| #14452 | Open | Req | 0.9.0 | 2008-08-04 | RowFormtter Callback |
| #15334 | Bogus | Bug | 0.9.0 | 2008-12-17 | count() and "EXTRACT" in query |
| #15369 | Wont fix | Doc | CVS | 2008-12-21 | Parse errors in examples |
| #15435 | Open | Req | 0.9.0 | 2008-12-29 | Add method SetRequestSuffix() |
| #15436 | Duplicate | Bug | 0.9.0 | 2008-12-29 | Broken SQL |
| #15769 | Closed | Bug | 0.9.0 | 2009-01-25 | setURLFormat method does not return clean query string intermittently |
| #16002 | Closed | Bug | 0.9.0 | 2009-03-09 | ORDER clause not stripped in count() |
| #16325 | Wont fix | Req | 0.9.0 | 2009-06-15 | convert to be zend framework complient - please! |
| #16464 | Closed | Bug | CVS | 2009-07-24 | Unit tests don't run from SVN |
| #16660 | Bogus | Bug | 0.9.0 | 2009-09-30 | I keep getting this error |
| #16665 | Duplicate | Bug | 0.9.0 | 2009-10-01 | Now I get this error |
| #16744 | Duplicate | Bug | 0.9.0 | 2009-10-27 | little typo |
| #16786 | Feedback | Bug | 0.9.0 | 2009-11-13 | warning message |
| #17102 | Open | Bug | CVS | 2010-02-14 | Unit tests broken in SVN |
| #17731 | Closed | Bug | SVN | 2010-08-17 | Patch: Avoid deprecations (favoring PCRE) |
| #18149 | Feedback | Bug | 0.9.1dev1 | 2010-12-27 | Incorrect type check triggers other bugs |
| #18259 | Open | Bug | 0.9.1dev1 | 2011-02-10 | sorting not working |
| #18952 | Closed | Bug | 0.9.1dev1 | 2011-11-02 | PHP 5.3 Support |
| #19026 | Closed | Bug | SVN | 2011-11-14 | remove error_reporting (for PEAR QA team) |
| #19251 | Closed | Bug | 0.9.2 | 2012-01-27 | Missing 'Structures/DataGrid/Exception.php' |
| #19841 | Open | Bug | 2013-03-04 | Deprecated uses of pass-by-reference everywhere |