1 | <?php |
||
20 | abstract class GenericListElement extends AbstractElement implements ListElement |
||
21 | { |
||
22 | /** |
||
23 | * @var \FSi\Component\DataSource\DataSourceFactoryInterface |
||
24 | */ |
||
25 | protected $datasourceFactory; |
||
26 | |||
27 | /** |
||
28 | * @var \FSi\Component\DataGrid\DataGridFactoryInterface |
||
29 | */ |
||
30 | protected $datagridFactory; |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | public function getRoute() |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | public function setDefaultOptions(OptionsResolver $resolver) |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function configureOptions(OptionsResolver $resolver) |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public function setDataGridFactory(DataGridFactoryInterface $factory) |
||
67 | |||
68 | /** |
||
69 | * {@inheritdoc} |
||
70 | */ |
||
71 | public function setDataSourceFactory(DataSourceFactoryInterface $factory) |
||
75 | |||
76 | /** |
||
77 | * {@inheritdoc} |
||
78 | */ |
||
79 | public function createDataGrid() |
||
89 | |||
90 | /** |
||
91 | * {@inheritdoc} |
||
92 | */ |
||
93 | public function createDataSource() |
||
103 | |||
104 | /** |
||
105 | * Initialize DataGrid. |
||
106 | * |
||
107 | * @param \FSi\Component\DataGrid\DataGridFactoryInterface $factory |
||
108 | * @return \FSi\Component\DataGrid\DataGridInterface |
||
109 | */ |
||
110 | abstract protected function initDataGrid(DataGridFactoryInterface $factory); |
||
111 | |||
112 | /** |
||
113 | * Initialize DataSource. |
||
114 | * |
||
115 | * @param \FSi\Component\DataSource\DataSourceFactoryInterface $factory |
||
116 | * @return \FSi\Component\DataSource\DataSourceInterface |
||
117 | */ |
||
118 | abstract protected function initDataSource(DataSourceFactoryInterface $factory); |
||
119 | } |
||
120 |