interface ZoneSearchInterface (View source)

The search page's zone half: matching zones with their owners, paged and sorted, and the unpaged match count. Each backend keeps its own row shape.

Methods

array
searchZones(array $parameters, string $permissionView, int|null $userId, string $sortBy, string $sortDirection, int $rowAmount, bool $includeComments, int $page)

No description

int
getTotalZones(array $parameters, string $permissionView, int|null $userId)

No description

Details

array searchZones(array $parameters, string $permissionView, int|null $userId, string $sortBy, string $sortDirection, int $rowAmount, bool $includeComments, int $page)

No description

Parameters

array $parameters

query, zones, records, comments, wildcard, reverse

string $permissionView

'all', or 'own' to limit to zones $userId owns

int|null $userId

The user an 'own' view is limited to; null matches nothing

string $sortBy
string $sortDirection
int $rowAmount
bool $includeComments

Add the zone comment to each row

int $page

Return Value

array

int getTotalZones(array $parameters, string $permissionView, int|null $userId)

No description

Parameters

array $parameters
string $permissionView
int|null $userId

Return Value

int