1 | <?php |
||
8 | class DataTablesAdapter |
||
9 | { |
||
10 | /** @var string */ |
||
11 | public $echo; |
||
12 | |||
13 | /** @var string */ |
||
14 | public $search; |
||
15 | |||
16 | /** @var int */ |
||
17 | public $pageSize; |
||
18 | |||
19 | /** @var int */ |
||
20 | public $offset; |
||
21 | |||
22 | /** @var int */ |
||
23 | public $pageNum; |
||
24 | |||
25 | /** @var array columnIndex=>ASC|DESC */ |
||
26 | public $sortIndexInfo; |
||
27 | |||
28 | /** @var array columnName=>bool */ |
||
29 | public $sortInfo; |
||
30 | |||
31 | |||
32 | /** |
||
33 | * @param Request $request Where to read input parameters from |
||
34 | * @param array $columns Optional list of column names from table need to build sortInfo, if omitted only sortIndexInfo would be available |
||
35 | */ |
||
36 | function bind(Request $request, array $columns = null) { |
||
57 | |||
58 | |||
59 | |||
60 | /** |
||
61 | * @param object[] $array |
||
62 | * @param int|bool $totalRecords |
||
63 | * @return Response |
||
64 | */ |
||
65 | function getResponse(array $array, $totalRecords = false) { |
||
80 | |||
81 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.