Guest User

Zend_Db_Table Relationships and Zend_Paginator

a guest
Feb 26th, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment