list_count = $list_count; if ($page){ $this->start = ($page-1)*$list_count->getValue(); $this->page_count = $page_count; $this->page = $page; } } function isPageHandler(){//in case you choose to use query limit in other cases than page select if ($this->page)return true; else return false; } function getOffset(){ return $this->start; } function getLimit(){ return $this->list_count->getValue(); } function toString(){ if ($this->page) return $this->start . ' , ' . $this->list_count->getValue(); else return $this->list_count->getValue(); } } ?>