forked from sonata-project/SonataAdminBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PagerInterface.php
56 lines (50 loc) · 1.03 KB
/
PagerInterface.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/*
* This file is part of the Sonata package.
*
* (c) Thomas Rabaix <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/
namespace Sonata\AdminBundle\Datagrid;
interface PagerInterface
{
/**
* Initialize the Pager.
*
* @return void
*/
public function init();
/**
* Returns the maximum number of results per page.
*
* @return integer
*/
public function getMaxPerPage();
/**
* Sets the maximum number of results per page.
*
* @param integer $max
*/
public function setMaxPerPage($max);
/**
* Sets the current page.
*
* @param integer $page
*/
public function setPage($page);
/**
* Set query
*
* @param mixed $query
*/
public function setQuery($query);
/**
* Returns an array of results on the given page.
*
* @return array
*/
public function getResults();
}