private function setPerPage()
    {
        if ($this->hasInput('per_page'))
        {
            $per_page_input = $this->getInput('per_page');

            if ($this->isValidPageNumber($per_page_input)) {
                $this->perPage = $per_page_input;
            }
            else if ($per_page_input == 'all')
            {
                $this->perPage = 'all';
            }
        }
    }
private function setPerPage()
    {
        if ($this->hasInput('per_page'))
        {
            $per_page_input = $this->getInput('per_page');

            if ($this->isValidPageNumber($per_page_input)) {
                $this->perPage = $per_page_input;
            }
            else if ($per_page_input == 'all')
            {
                $this->perPage = 'all';
            }
        }
    }
private function setPerPage ( ) { if ( $ this -> hasInput ( 'per_page' ) ) { $ per_page_input = $ this -> getInput ( 'per_page' ) ; if ( $ this -> isValidPageNumber ( $ per_page_input ) ) { $ this -> perPage = $ per_page_input ; } else if ( $ per_page_input == 'all' ) { $ this -> perPage = 'all' ; } } }
This will just set the per_page property
override default per page when there are per_page
in the request parameter

@return void
This will just set the per_page property override default per page when there are per_page in the request parameter