1 | <?php |
||
10 | class ScoutDataTable extends DataTableAbstract |
||
11 | { |
||
12 | /** |
||
13 | * @var Model |
||
14 | */ |
||
15 | protected $model; |
||
16 | |||
17 | /** |
||
18 | * @var Builder |
||
19 | */ |
||
20 | protected $builder; |
||
21 | |||
22 | /** |
||
23 | * @var Collection |
||
24 | */ |
||
25 | protected $collection; |
||
26 | |||
27 | /** |
||
28 | * ScoutDataTable constructor. |
||
29 | * |
||
30 | * @param Model $model |
||
31 | */ |
||
32 | public function __construct(Model $model) |
||
39 | |||
40 | /** |
||
41 | * Get results. |
||
42 | * |
||
43 | * @return mixed |
||
44 | */ |
||
45 | public function results() |
||
49 | |||
50 | /** |
||
51 | * Count results. |
||
52 | * |
||
53 | * @return integer |
||
54 | */ |
||
55 | public function count() |
||
59 | |||
60 | /** |
||
61 | * Count total items. |
||
62 | * |
||
63 | * @return integer |
||
64 | */ |
||
65 | public function totalCount() |
||
69 | |||
70 | /** |
||
71 | * Perform column search. |
||
72 | * |
||
73 | * @return void |
||
74 | */ |
||
75 | public function columnSearch() |
||
79 | |||
80 | /** |
||
81 | * Perform pagination. |
||
82 | * |
||
83 | * @return void |
||
84 | */ |
||
85 | public function paging() |
||
89 | |||
90 | /** |
||
91 | * Organizes works. |
||
92 | * |
||
93 | * @param bool $mDataSupport |
||
94 | * @return \Illuminate\Http\JsonResponse |
||
95 | */ |
||
96 | public function make($mDataSupport = true) |
||
117 | |||
118 | /** |
||
119 | * @param string $keyword |
||
120 | */ |
||
121 | protected function globalSearch($keyword) |
||
125 | |||
126 | /** |
||
127 | * Append debug parameters on output. |
||
128 | * |
||
129 | * @param array $output |
||
130 | * @return array |
||
131 | */ |
||
132 | protected function showDebugger(array $output) |
||
138 | |||
139 | /** |
||
140 | * Resolve callback parameter instance. |
||
141 | * |
||
142 | * @return mixed |
||
143 | */ |
||
144 | protected function resolveCallbackParameter() |
||
148 | |||
149 | /** |
||
150 | * Perform default query orderBy clause. |
||
151 | */ |
||
152 | protected function defaultOrdering() |
||
182 | } |
||
183 |