public function __construct($totalRows, $listRows = 20, $parameter = array()) { parent::__construct($totalRows, $listRows, $parameter); $this->nowPage = empty($_GET[$this->p]) ? 1 : intval($_GET[$this->p]); $this->nowPage = $this->nowPage > 0 ? $this->nowPage : 1; }