Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Small typos in libraries/pagination.rst #8863

Merged
merged 1 commit into from
Nov 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions user_guide_src/source/libraries/pagination.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ the previous section. Specify the segment number to use as the fifth parameter t

Please note: ``$segment`` value cannot be greater than the number of URI segments plus 1.

If you in need to show many pagers on one page then additional parameter which will define a group could be helpful:
If you need to show many pagers on one page then the additional parameter which will define a group could be helpful:

.. literalinclude:: pagination/007.php

Expand Down Expand Up @@ -224,7 +224,7 @@ usefulness. It is easiest to demonstrate creating a new view by showing you the
setSurroundCount()
------------------

In the first line, the ``setSurroundCount()`` method specifies than we want to show two links to either side of
In the first line, the ``setSurroundCount()`` method specifies that we want to show two links to either side of
the current page link. The only parameter that it accepts is the number of links to show.

.. note:: You must call this method first to generate correct pagination links.
Expand Down Expand Up @@ -274,7 +274,7 @@ In the code presented for the standard pagination structure, the methods `getPre

If you want to use the pagination structure where prev and next will be links to the previous and next pages based on the current page, just replace the `getPrevious() & getNext()`_ methods with `getPreviousPage() & getNextPage()`_, and the methods `hasPrevious() & hasNext()`_ by `hasPreviousPage() & hasNextPage()`_ respectively.

See following an example with these changes:
See the following example with these changes:

.. literalinclude:: pagination/014.php

Expand Down Expand Up @@ -325,7 +325,7 @@ links to be displayed. For example, if the set of links to be displayed is somet

3 | 4 | 5 | 6 | 7

``getFirstPageNumber()`` will return 3 while ``getLastPageNumber()`` will return 7.
``getFirstPageNumber()`` will return 3 while ``getLastPageNumber()`` will return 7.

.. note:: To obtain the page numbers of the first and last pages in the entire
result set, you can use the following approach: The first page number is always 1, and `getPageCount()`_ can be used to
Expand Down