php简单分页类(2)
来源:未知 责任编辑:责任编辑 发表时间:2015-10-08 14:15 点击:次
return $this->offset+1;
}
}
private function getEndNum(){
return min($this->offset+$this->num,$this->total);
}
public function getPageInfo(){
$pageInfo=array(
"row_total"=>$this->total,
"row_num" =>$this->num,
"page_num" =>$this->getPageNum(),
"current_page"=>$this->page,
"row_offset"=>$this->getOffset(),
"next_page"=>$this->getNextPage(),
"prev_page"=>$this->getPrevPage(),
"page_start"=>$this->getStartNum(),
"page_end" =>$this->getEndNum()
);
return $pageInfo;
}
}
?>
摘自 chaojie2009的专栏
相关新闻>>
- 发表评论
-
- 最新评论 更多>>