For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > June 2006 > Structures_DataGrid









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Structures_DataGrid
Markus Ernst

2006-06-28, 8:01 am

Hi

I try to use Structures_DataGrid for importing Data of various formats.
So, after successfully bind()ed the data I would like to get them out as
an array with the same structure as used for filling the Array
datasource driver.

As I did not find some kind of getRecordSet() method in DataGrid, I
wonder what would be the appropriate way to get the data out:
1. Write a new class which inherits Structures_DataGrid and provides a
public method to retrieve the recordsets
2. Write a new renderer that returns the data as an array
3. Dirty way: $data = $datagrid->recordSet;

Thanks for comments
Markus
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com