This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Zend_Db_Table Relationships and Zend_Paginator

By: a guest on Feb 26th, 2012  |  syntax: None  |  size: 0.39 KB  |  views: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. $select = $row->select();
  2. $select->order('item_name');    
  3. $row->findDependentRowset($table, null, $select)
  4.        
  5. $select = $row->select()->limit($itemCountPerPage,$offset);
  6. $select->order('item_name');    
  7. $row->findDependentRowset($table, null, $select);
  8.        
  9. public function getItems($offset, $itemCountPerPage)
  10. {
  11.    $this->_select->limit($itemCountPerPage, $offset);
  12.    return $this->_select;
  13. }
clone this paste RAW Paste Data