[TYPO3-ect] Draft: Proposal of a resultbrowser pipe
    Christian Welzel 
    gawain at camlann.de
       
    Fri Sep  1 11:27:59 CEST 2006
    
    
  
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.
  }
}
-- 
 MfG, Christian Welzel
  GPG-Key:     http://www.camlann.de/key.asc
  Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15
    
    
More information about the TYPO3-team-extension-coordination
mailing list