public function getCurrentPage()
	{
		$page = (int) $this->currentPage ?: $this->request->query->get($this->pageName, 1);

		if ($page < 1 || filter_var($page, FILTER_VALIDATE_INT) === false)
		{
			return 1;
		}

		return $page;
	}
public function getCurrentPage()
	{
		$page = (int) $this->currentPage ?: $this->request->query->get($this->pageName, 1);

		if ($page < 1 || filter_var($page, FILTER_VALIDATE_INT) === false)
		{
			return 1;
		}

		return $page;
	}
public function getCurrentPage ( ) { $ page = ( int ) $ this -> currentPage ? : $ this -> request -> query -> get ( $ this -> pageName , 1 ) ; if ( $ page < 1 || filter_var ( $ page , FILTER_VALIDATE_INT ) === false ) { return 1 ; } return $ page ; }
Get the number of the current page.

@return int
Get the number of the current page .