1 | <?php |
||
21 | class Grid implements GridInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var ResourceInterface |
||
25 | */ |
||
26 | private $resource; |
||
27 | |||
28 | /** |
||
29 | * @var ColumnInterface[] |
||
30 | */ |
||
31 | private $columns; |
||
32 | |||
33 | /** |
||
34 | * @var FilterInterface[] |
||
35 | */ |
||
36 | private $filters; |
||
37 | |||
38 | /** |
||
39 | * @var SortInterface[] |
||
40 | */ |
||
41 | private $sorts; |
||
42 | |||
43 | /** |
||
44 | * @var ActionInterface[] |
||
45 | */ |
||
46 | private $globalActions; |
||
47 | |||
48 | /** |
||
49 | * @var ActionInterface[] |
||
50 | */ |
||
51 | private $columnActions; |
||
52 | |||
53 | /** |
||
54 | * @var BatchInterface[] |
||
55 | */ |
||
56 | private $batches; |
||
57 | |||
58 | /** |
||
59 | * @var mixed[] |
||
60 | */ |
||
61 | private $data; |
||
62 | |||
63 | /** |
||
64 | * @var mixed[] |
||
65 | */ |
||
66 | private $options; |
||
67 | |||
68 | /** |
||
69 | * @param ResourceInterface $resource |
||
70 | * @param ColumnInterface[] $columns |
||
71 | * @param FilterInterface[] $filters |
||
72 | * @param SortInterface[] $sorts |
||
73 | * @param ActionInterface[] $globalActions |
||
74 | * @param ActionInterface[] $columnActions |
||
75 | * @param BatchInterface[] $batches |
||
76 | * @param mixed[] $data |
||
77 | * @param mixed[] $options |
||
78 | */ |
||
79 | 14 | public function __construct( |
|
100 | |||
101 | /** |
||
102 | * {@inheritdoc} |
||
103 | */ |
||
104 | 5 | public function getResource() |
|
108 | |||
109 | /** |
||
110 | * {@inheritdoc} |
||
111 | */ |
||
112 | 4 | public function hasColumns() |
|
116 | |||
117 | /** |
||
118 | * {@inheritdoc} |
||
119 | */ |
||
120 | 4 | public function getColumns() |
|
124 | |||
125 | /** |
||
126 | * {@inheritdoc} |
||
127 | */ |
||
128 | 3 | public function hasColumn($name) |
|
132 | |||
133 | /** |
||
134 | * {@inheritdoc} |
||
135 | */ |
||
136 | 2 | public function getColumn($name) |
|
144 | |||
145 | /** |
||
146 | * {@inheritdoc} |
||
147 | */ |
||
148 | 4 | public function hasFilters() |
|
152 | |||
153 | /** |
||
154 | * {@inheritdoc} |
||
155 | */ |
||
156 | 4 | public function getFilters() |
|
160 | |||
161 | /** |
||
162 | * {@inheritdoc} |
||
163 | */ |
||
164 | 3 | public function hasFilter($name) |
|
168 | |||
169 | /** |
||
170 | * {@inheritdoc} |
||
171 | */ |
||
172 | 2 | public function getFilter($name) |
|
180 | |||
181 | /** |
||
182 | * {@inheritdoc} |
||
183 | */ |
||
184 | 4 | public function hasSorts() |
|
188 | |||
189 | /** |
||
190 | * {@inheritdoc} |
||
191 | */ |
||
192 | 4 | public function getSorts() |
|
196 | |||
197 | /** |
||
198 | * {@inheritdoc} |
||
199 | */ |
||
200 | 3 | public function hasSort($name) |
|
204 | |||
205 | /** |
||
206 | * {@inheritdoc} |
||
207 | */ |
||
208 | 2 | public function getSort($name) |
|
216 | |||
217 | /** |
||
218 | * {@inheritdoc} |
||
219 | */ |
||
220 | 4 | public function hasGlobalActions() |
|
224 | |||
225 | /** |
||
226 | * {@inheritdoc} |
||
227 | */ |
||
228 | 4 | public function getGlobalActions() |
|
232 | |||
233 | /** |
||
234 | * {@inheritdoc} |
||
235 | */ |
||
236 | 3 | public function hasGlobalAction($name) |
|
240 | |||
241 | /** |
||
242 | * {@inheritdoc} |
||
243 | */ |
||
244 | 2 | public function getGlobalAction($name) |
|
252 | |||
253 | /** |
||
254 | * {@inheritdoc} |
||
255 | */ |
||
256 | 4 | public function hasColumnActions() |
|
260 | |||
261 | /** |
||
262 | * {@inheritdoc} |
||
263 | */ |
||
264 | 4 | public function getColumnActions() |
|
268 | |||
269 | /** |
||
270 | * {@inheritdoc} |
||
271 | */ |
||
272 | 3 | public function hasColumnAction($name) |
|
276 | |||
277 | /** |
||
278 | * {@inheritdoc} |
||
279 | */ |
||
280 | 2 | public function getColumnAction($name) |
|
288 | |||
289 | /** |
||
290 | * {@inheritdoc} |
||
291 | */ |
||
292 | 4 | public function hasBatches() |
|
296 | |||
297 | /** |
||
298 | * {@inheritdoc} |
||
299 | */ |
||
300 | 4 | public function getBatches() |
|
304 | |||
305 | /** |
||
306 | * {@inheritdoc} |
||
307 | */ |
||
308 | 3 | public function hasBatch($name) |
|
312 | |||
313 | /** |
||
314 | * {@inheritdoc} |
||
315 | */ |
||
316 | 2 | public function getBatch($name) |
|
324 | |||
325 | /** |
||
326 | * {@inheritdoc} |
||
327 | */ |
||
328 | 4 | public function hasData() |
|
332 | |||
333 | /** |
||
334 | * {@inheritdoc} |
||
335 | */ |
||
336 | 4 | public function getData() |
|
340 | |||
341 | /** |
||
342 | * {@inheritdoc} |
||
343 | */ |
||
344 | 3 | public function hasOptions() |
|
348 | |||
349 | /** |
||
350 | * {@inheritdoc} |
||
351 | */ |
||
352 | 5 | public function getOptions() |
|
356 | |||
357 | /** |
||
358 | * {@inheritdoc} |
||
359 | */ |
||
360 | 3 | public function hasOption($name) |
|
364 | |||
365 | /** |
||
366 | * {@inheritdoc} |
||
367 | */ |
||
368 | 2 | public function getOption($name) |
|
376 | } |
||
377 |