| Saturday 25 February 2006 5:32:30 pm 
                                                                
                                                                 <b>Suggestion:</b> A "Fetch" function that returns a selected series of objects from Collected Information (eg by attribute_id, attribute value, user_id, or time). 
<b>Why:</b>Current Fetch functions for collected information only count totals (ie "collected_info_count" and "collected_info_count_list") - they don't allow selection of a series of collected information objects, only individual objects by content object id (ie "collected_info_collection"). This means you need to do a lot of processing to know what objects you want before you can do anything with them. Although it is possible to achieve the outcome in other ways, a Fetch function to get one or more objects by different criteria would enable:
 
- For polls, showing a registered user what they've voted for.- Histories and summaries of user Poll / form responses.
 - Advanced user interaction and information handling
 
<b>How:</b>It seems likely that the functions are probably already written and just need to be adapted to this purpose -
 1) The file "/kernel/classes/ezinformationcollection.php" contains a function called "fetchByUserIdentifier" which "fetches the information collection by user identifier" (line 419). Perhaps there is a way to access this? 2) Create a simple (?) adaptation of Fetch function that applies to the collected information SQL tables? 
<b>Evidence of Need / Issue</b>This topic has come up a number of times in the forums, for example:
 - http://ez.no/community/forum/developer/polls_fetch_to_display_user_s_vote_value
 - http://ez.no/community/forum/setup_design/how_to_fetch_collected_info_list
 - http://ez.no/community/forum/setup_design/collected_infp_collection_data_fetching
 - http://ez.no/community/forum/setup_design/information_collection_help_me_please
 - http://ez.no/community/forum/setup_design/information_collection_data_stored
 Is this possible, or perhaps already planned? Has anyone else identified this as valuable "nice to have" or "must have" feature? |