1 | <?php |
||
26 | class Datagrid implements DatagridInterface |
||
27 | { |
||
28 | /** |
||
29 | * The filter instances. |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $filters = []; |
||
34 | |||
35 | /** |
||
36 | * @var array |
||
37 | */ |
||
38 | protected $values; |
||
39 | |||
40 | /** |
||
41 | * @var FieldDescriptionCollection |
||
42 | */ |
||
43 | protected $columns; |
||
44 | |||
45 | /** |
||
46 | * @var PagerInterface |
||
47 | */ |
||
48 | protected $pager; |
||
49 | |||
50 | /** |
||
51 | * @var bool |
||
52 | */ |
||
53 | protected $bound = false; |
||
54 | |||
55 | /** |
||
56 | * @var ProxyQueryInterface |
||
57 | */ |
||
58 | protected $query; |
||
59 | |||
60 | /** |
||
61 | * @var FormBuilderInterface |
||
62 | */ |
||
63 | protected $formBuilder; |
||
64 | |||
65 | /** |
||
66 | * @var FormInterface |
||
67 | */ |
||
68 | protected $form; |
||
69 | |||
70 | /** |
||
71 | * @var array |
||
72 | */ |
||
73 | protected $results; |
||
74 | |||
75 | /** |
||
76 | * @param ProxyQueryInterface $query |
||
77 | * @param FieldDescriptionCollection $columns |
||
78 | * @param PagerInterface $pager |
||
79 | * @param FormBuilderInterface $formBuilder |
||
80 | * @param array $values |
||
81 | */ |
||
82 | public function __construct(ProxyQueryInterface $query, FieldDescriptionCollection $columns, PagerInterface $pager, FormBuilderInterface $formBuilder, array $values = []) |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | public function getPager() |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | public function getResults() |
||
112 | |||
113 | /** |
||
114 | * {@inheritdoc} |
||
115 | */ |
||
116 | public function buildPager() |
||
191 | |||
192 | /** |
||
193 | * {@inheritdoc} |
||
194 | */ |
||
195 | public function addFilter(FilterInterface $filter) |
||
199 | |||
200 | /** |
||
201 | * {@inheritdoc} |
||
202 | */ |
||
203 | public function hasFilter($name) |
||
207 | |||
208 | /** |
||
209 | * {@inheritdoc} |
||
210 | */ |
||
211 | public function removeFilter($name) |
||
215 | |||
216 | /** |
||
217 | * {@inheritdoc} |
||
218 | */ |
||
219 | public function getFilter($name) |
||
223 | |||
224 | /** |
||
225 | * {@inheritdoc} |
||
226 | */ |
||
227 | public function getFilters() |
||
231 | |||
232 | /** |
||
233 | * {@inheritdoc} |
||
234 | */ |
||
235 | public function reorderFilters(array $keys) |
||
239 | |||
240 | /** |
||
241 | * {@inheritdoc} |
||
242 | */ |
||
243 | public function getValues() |
||
247 | |||
248 | /** |
||
249 | * {@inheritdoc} |
||
250 | */ |
||
251 | public function setValue($name, $operator, $value) |
||
258 | |||
259 | /** |
||
260 | * {@inheritdoc} |
||
261 | */ |
||
262 | public function hasActiveFilters() |
||
272 | |||
273 | /** |
||
274 | * {@inheritdoc} |
||
275 | */ |
||
276 | public function hasDisplayableFilters() |
||
287 | |||
288 | /** |
||
289 | * {@inheritdoc} |
||
290 | */ |
||
291 | public function getColumns() |
||
295 | |||
296 | /** |
||
297 | * {@inheritdoc} |
||
298 | */ |
||
299 | public function getQuery() |
||
303 | |||
304 | /** |
||
305 | * {@inheritdoc} |
||
306 | */ |
||
307 | public function getForm() |
||
313 | } |
||
314 |