1 | <?php |
||
22 | class CollectionEngine extends BaseEngine implements DataTableEngineContract |
||
23 | { |
||
24 | /** |
||
25 | * Collection object |
||
26 | * |
||
27 | * @var Collection |
||
28 | */ |
||
29 | public $collection; |
||
30 | |||
31 | /** |
||
32 | * Collection object |
||
33 | * |
||
34 | * @var Collection |
||
35 | */ |
||
36 | public $original_collection; |
||
37 | |||
38 | /** |
||
39 | * @param Collection $collection |
||
40 | * @param \Yajra\Datatables\Request $request |
||
41 | */ |
||
42 | public function __construct(Collection $collection, Request $request) |
||
49 | |||
50 | /** |
||
51 | * Serialize collection |
||
52 | * |
||
53 | * @param mixed $collection |
||
54 | * @return mixed|null |
||
55 | */ |
||
56 | protected function serialize($collection) |
||
60 | |||
61 | /** |
||
62 | * @inheritdoc |
||
63 | */ |
||
64 | public function filter(Closure $callback) |
||
70 | |||
71 | /** |
||
72 | * @inheritdoc |
||
73 | */ |
||
74 | public function showDebugger(array $output) |
||
80 | |||
81 | |||
82 | /** |
||
83 | * @inheritdoc |
||
84 | */ |
||
85 | public function count() |
||
89 | |||
90 | /** |
||
91 | * @inheritdoc |
||
92 | */ |
||
93 | public function ordering() |
||
110 | |||
111 | /** |
||
112 | * @inheritdoc |
||
113 | */ |
||
114 | public function filtering() |
||
141 | |||
142 | /** |
||
143 | * @inheritdoc |
||
144 | */ |
||
145 | public function columnSearch() |
||
168 | |||
169 | /** |
||
170 | * @inheritdoc |
||
171 | */ |
||
172 | public function paging() |
||
179 | |||
180 | /** |
||
181 | * @inheritdoc |
||
182 | */ |
||
183 | public function results() |
||
187 | |||
188 | /** |
||
189 | * @inheritdoc |
||
190 | */ |
||
191 | public function make($mDataSupport = false, $orderFirst = true) |
||
195 | } |
||
196 |