欢迎光临Software MyZone,有问题可留言或到站点论坛发帖,争取第一时间帮忙解决 || 站点论坛:火龙论坛 || 淘宝小店:应小心的易淘屋 【欢迎大家提建设性意见】

php项目框架搭建(三)【实体篇】Page

本文为firedragonpzy原创,转载务必在明显处注明:
转载自【Softeware MyZone】原文链接: 
http://www.firedragonpzy.com.cn/index.php/archives/2315

本文主要是围绕分页实体展开的,详细如下:

public static $MAX_PAGE_SIZE = 99999;
	private $orderField = "create_date";
	private $orderDirection = "DESC";
	private $pageNum = 1;//当前页码
	private $pageSize = 0; //每页大小
	
	public function __construct()
	{
		$this->pageSize = self::$MAX_PAGE_SIZE;
	}
	
	/**
	 * @return the $orderField
	 */
	public function getOrderField() {
		return $this->orderField;
	}

	/**
	 * @return the $orderDirection
	 */
	public function getOrderDirection() {
		return $this->orderDirection;
	}

	/**
	 * @return the $pageNum
	 */
	public function getPageNum() {
		return $this->pageNum;
	}

	/**
	 * @return the $pageSize
	 */
	public function getPageSize() {
		return $this->pageSize;
	}

	/**
	 * @param string $orderField
	 */
	public function setOrderField($orderField) {
		$this->orderField = $orderField;
	}

	/**
	 * @param string $orderDirection
	 */
	public function setOrderDirection($orderDirection) {
		$this->orderDirection = $orderDirection;
	}

	/**
	 * @param number $pageNum
	 */
	public function setPageNum($pageNum) {
		$this->pageNum = $pageNum;
	}

	/**
	 * @param number $pageSize
	 */
	public function setPageSize($pageSize) {
		$this->pageSize = $pageSize;
	}

Tags: ,

发表评论