_table = $table; } /** * * returns an array of items for the selected page * * @param integer $offset page offset * @param integer $itemCountPerPage number of items per page * @return \Cube\Db\Table\Rowset\AbstractRowset */ public function getItems($offset, $itemCountPerPage) { $this->_select->limit($itemCountPerPage, $offset); return $this->_table->fetchAll($this->_select); } }