onOffice WP Plugin

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

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
global

int $page

global

bool $more

Return values
string

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>
Return values
string

Search results