[TYPO3-ect] Draft: Proposal of a resultbrowser pipe
    Martin Kutschker 
    Martin.Kutschker at n0spam-blackbox.net
       
    Fri Sep  1 11:35:29 CEST 2006
    
    
  
Christian Welzel schrieb:
> Elmar Hinz wrote:
> 
> 
>>All in all we need a more flexible system that makes it possible to
>>provide different types of resultbrowsers as extensions and to combine
> 
> 
> If i remember correctly the resultbrowser if oscommerce does it this
> way: 
> 
> get an instance of the resultbrowser (in typo3 impl as service?)
> call showResults() with a sql-query, the number of results per page
>   and the page-count
> 
> all the stuff for showing a list is now handled by the resultbrowser.
> the page-counter is a internal var of the browser.
> 
> i believe this way is very easy to understand for ext-devs.
> 
> a possible trace of a ext: (pseudo code)
> 
> function main() {
>   b = getInstanceofService("resultbrowser");
>   b->setQuery("SELECT * FROM foo");
>   if(!b->showResults()) {
>     // no page browsing mode
>     // perhaps single view or armageddon.
>   }
> }
Nice, but the browserService should not restrict itself to SQL queries. 
IMHO it's the job of the calling code to provide the data, and not the job 
of the browser.
Masi
    
    
More information about the TYPO3-team-extension-coordination
mailing list