1 | <?php |
||
21 | class CollectionEngine extends BaseEngine implements DataTableEngineContract |
||
22 | { |
||
23 | /** |
||
24 | * Collection object |
||
25 | * |
||
26 | * @var Collection |
||
27 | */ |
||
28 | public $collection; |
||
29 | |||
30 | /** |
||
31 | * Collection object |
||
32 | * |
||
33 | * @var Collection |
||
34 | */ |
||
35 | public $original_collection; |
||
36 | |||
37 | /** |
||
38 | * @param Collection $collection |
||
39 | * @param \Yajra\Datatables\Request $request |
||
40 | */ |
||
41 | public function __construct(Collection $collection, Request $request) |
||
48 | |||
49 | /** |
||
50 | * Serialize collection |
||
51 | * |
||
52 | * @param mixed $collection |
||
53 | * @return mixed|null |
||
54 | */ |
||
55 | protected function serialize($collection) |
||
59 | |||
60 | /** |
||
61 | * @inheritdoc |
||
62 | */ |
||
63 | public function filter(Closure $callback) |
||
69 | |||
70 | /** |
||
71 | * @inheritdoc |
||
72 | */ |
||
73 | public function showDebugger(array $output) |
||
79 | |||
80 | /** |
||
81 | * @inheritdoc |
||
82 | */ |
||
83 | public function totalCount() |
||
87 | |||
88 | /** |
||
89 | * @inheritdoc |
||
90 | */ |
||
91 | public function count() |
||
95 | |||
96 | /** |
||
97 | * @inheritdoc |
||
98 | */ |
||
99 | public function ordering() |
||
116 | |||
117 | /** |
||
118 | * @inheritdoc |
||
119 | */ |
||
120 | public function filtering() |
||
147 | |||
148 | /** |
||
149 | * @inheritdoc |
||
150 | */ |
||
151 | public function columnSearch() |
||
174 | |||
175 | /** |
||
176 | * @inheritdoc |
||
177 | */ |
||
178 | public function paging() |
||
185 | |||
186 | /** |
||
187 | * @inheritdoc |
||
188 | */ |
||
189 | public function results() |
||
193 | |||
194 | /** |
||
195 | * @inheritdoc |
||
196 | */ |
||
197 | public function make($mDataSupport = false, $orderFirst = true) |
||
201 | } |
||
202 |