protected function setPageCurrent($page)
    {

        // need both of these?
        $page += 0;
        $page = (int) $page;

        // cant be below 1
        $page = $page ? $page : 1;

        // cant be above possible
        if ($page > $this->possiblePages) {
            $page = $this->possiblePages;
        }

        $this->pageCurrent = $page;
    }
protected function setPageCurrent($page)
    {

        // need both of these?
        $page += 0;
        $page = (int) $page;

        // cant be below 1
        $page = $page ? $page : 1;

        // cant be above possible
        if ($page > $this->possiblePages) {
            $page = $this->possiblePages;
        }

        $this->pageCurrent = $page;
    }
protected function setPageCurrent ( $ page ) { // need both of these? $ page += 0 ; $ page = ( int ) $ page ; // cant be below 1 $ page = $ page ? $ page : 1 ; // cant be above possible if ( $ page > $ this -> possiblePages ) { $ page = $ this -> possiblePages ; } $ this -> pageCurrent = $ page ; }
page is set within the constraints of lowest and highest value
@param int $page
page is set within the constraints of lowest and highest value