Skip to content

Commit b98529c

Browse files
committed
docs: make method names links
1 parent be2c2f9 commit b98529c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

user_guide_src/source/libraries/pagination.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ hasPrevious() & hasNext()
233233
-------------------------
234234

235235
These methods return a boolean ``true`` if there are more links that can be displayed on either side of the current page,
236-
based on the value passed to ``setSurroundCount()``.
236+
based on the value passed to `setSurroundCount()`_.
237237

238238
For example, let's say we have 20 pages of data. The current
239239
page is page 3. If the surrounding count is 2, then the following links would show up like this::
@@ -254,12 +254,12 @@ For example, you have the current page set at 5 and you want to have the links b
254254

255255
``getPrevious()`` returns the URL for page 2. ``getNext()`` returns the URL for page 8.
256256

257-
If you want to get page 4 and page 6, use ``getPreviousPage()`` and ``getNextPage()`` instead.
257+
If you want to get page 4 and page 6, use `getPreviousPage() & getNextPage()`_ instead.
258258

259259
getFirst() & getLast()
260260
----------------------
261261

262-
Much like ``getPrevious()`` and ``getNext()``, these methods return the **URL** to the first and last pages in the
262+
Much like `getPrevious() & getNext()`_, these methods return the **URL** to the first and last pages in the
263263
result set.
264264

265265
links()
@@ -270,9 +270,9 @@ title, which is just the number, and a boolean that tells whether the link is th
270270

271271
.. literalinclude:: pagination/013.php
272272

273-
In the code presented for the standard pagination structure, the methods ``getPrevious()`` and ``getNext()`` are used to obtain the links to the previous and next pagination groups respectively.
273+
In the code presented for the standard pagination structure, the methods `getPrevious() & getNext()`_ are used to obtain the links to the previous and next pagination groups respectively.
274274

275-
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()`` and ``getNext()`` methods with ``getPreviousPage()`` and ``getNextPage()``, and the methods ``hasPrevious()`` and ``hasNext()`` by ``hasPreviousPage()`` and ``hasNextPage()`` respectively.
275+
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.
276276

277277
See following an example with these changes:
278278

@@ -283,7 +283,7 @@ hasPreviousPage() & hasNextPage()
283283

284284
This method returns a boolean ``true`` if there are links to a page before and after, respectively, the current page being displayed.
285285

286-
Their difference to ``hasPrevious()`` and ``hasNext()`` is that they are based on the current page while ``hasPrevious()`` and ``hasNext()`` are based on the set of links to be displayed before and after the current page based on the value passed in ``setSurroundCount()``.
286+
Their difference to `hasPrevious() & hasNext()`_ is that they are based on the current page while `hasPrevious() & hasNext()`_ are based on the set of links to be displayed before and after the current page based on the value passed in `setSurroundCount()`_.
287287

288288
For example, let's say we have 20 pages of data. The current
289289
page is page 3. If the surrounding count is 2, then the following links would show up like this::
@@ -296,7 +296,7 @@ page is page 3. If the surrounding count is 2, then the following links would sh
296296
getPreviousPage() & getNextPage()
297297
---------------------------------
298298

299-
These methods return a **URL** for the previous and next pages in relation to the current page being displayed, unlike ``getPrevious()`` and ``getNext()`` that return the URL for the previous or next pages of results on either side of the numbered links. See the previous paragraph for a full explanation.
299+
These methods return a **URL** for the previous and next pages in relation to the current page being displayed, unlike `getPrevious() & getNext()`_ that return the URL for the previous or next pages of results on either side of the numbered links. See the previous paragraph for a full explanation.
300300

301301
For example, you have the current page set at 5 and you want to have the links before and after (the surroundCount) to be 2 each, that will give you something like this::
302302

0 commit comments

Comments
 (0)