/
PagerManagerInterface.php
40 lines (32 loc) · 1.08 KB
/
PagerManagerInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
namespace Concrete\Core\Search\ItemList\Pager\Manager;
use Concrete\Core\Search\Column\Set;
use Concrete\Core\Search\ItemList\Pager\PagerProviderInterface;
use Concrete\Core\Search\ItemList\Pager\QueryString\VariableInterface;
use Concrete\Core\Search\Pagination\PagerPagination;
interface PagerManagerInterface
{
/**
* @param PagerProviderInterface $itemList
* @param PagerPagination $pagination
*/
function getNextCursorStart(PagerProviderInterface $itemList, PagerPagination $pagination);
/**
* Adds a secondary sort query to an item list so that items that are sorted by
* text criteria will paginate properly.
* @param PagerProviderInterface $itemList
* @param string $direction
* @return void
*/
function sortListByCursor(PagerProviderInterface $itemList, $direction);
/**
* @return Set
*/
function getAvailableColumnSet();
/**
* @param $cursor
* @param PagerProviderInterface $itemList
* @return mixed
*/
function displaySegmentAtCursor($cursor, PagerProviderInterface $itemList);
}