SearchParameters
in package
class that holds submitted get parameters for the pagination
Table of Contents
- linkPagesLink() : string
- Generates a pagelink for pagination with given parameters as GET Request
- registerNewPageLinkArgs() : mixed
- getLinkSnippetForPage() : string
- geturl() : string
Methods
linkPagesLink()
Generates a pagelink for pagination with given parameters as GET Request
public
linkPagesLink(string $link, int $i, SearchParametersModel $pModel) : string
partly taken from wp_link_pages() and _wp_link_page()
Parameters
- $link : string
- $i : int
- $pModel : SearchParametersModel
Tags
Return values
string —registerNewPageLinkArgs()
public
registerNewPageLinkArgs(SearchParametersModel $pSearchParametersModel) : mixed
Parameters
- $pSearchParametersModel : SearchParametersModel
Return values
mixed —getLinkSnippetForPage()
private
getLinkSnippetForPage(int $i, int $page, array<string|int, mixed> $linkparams, SearchParametersModel $pModel) : string
Parameters
- $i : int
- $page : int
- $linkparams : array<string|int, mixed>
- $pModel : SearchParametersModel
Return values
string —geturl()
private
geturl(int $i, array<string|int, mixed> $parameters) : string
Parameters
- $i : int
- $parameters : array<string|int, mixed>