ListingHandler
in package
AbstractYes
This class defines a handler for Listings (for example the PagingController)
Tags
Table of Contents
Methods
- handle() : array<string|int, mixed>
- Handles the listing by changing parameters like limit and offset
Methods
handle()
Handles the listing by changing parameters like limit and offset
public
abstract handle(array<string|int, mixed> $config, array<string|int, mixed> $params) : array<string|int, mixed>
Both the params argument and the return value look like this: array( 'offset' => {integer}, // start offset to use 'count' => {integer}, // number of entries to show 'criteria' => {array}, // criteria (similiar to SQLs WHERE) 'order' => {array}, // order to sort by )
Parameters
- $config : array<string|int, mixed>
-
Configuration
- $params : array<string|int, mixed>
-
Parameters
Return values
array<string|int, mixed> —The handled parameters