1 | <?php |
||
17 | abstract class AbstractPageAdminListConfigurator extends AbstractDoctrineDBALAdminListConfigurator |
||
18 | { |
||
19 | /** |
||
20 | * @var EntityManagerInterface |
||
21 | */ |
||
22 | private $em; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $locale; |
||
28 | |||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | private $nodeIds = []; |
||
33 | |||
34 | /** |
||
35 | * @var array |
||
36 | */ |
||
37 | private $nodeTranslationIds = []; |
||
38 | |||
39 | /** |
||
40 | * AbstractPageAdminListConfigurator constructor. |
||
41 | * |
||
42 | * @param EntityManagerInterface $em |
||
43 | * @param string $locale |
||
44 | */ |
||
45 | public function __construct(EntityManagerInterface $em, $locale) |
||
52 | |||
53 | /** |
||
54 | * Configure the visible columns |
||
55 | */ |
||
56 | public function buildFields() |
||
62 | |||
63 | /** |
||
64 | * Build filters for admin list |
||
65 | */ |
||
66 | public function buildFilters() |
||
72 | |||
73 | /** |
||
74 | * Get the edit url for the given $item |
||
75 | * |
||
76 | * @param array $item |
||
77 | * |
||
78 | * @return array |
||
|
|||
79 | */ |
||
80 | public function getEditUrlFor($item) |
||
87 | |||
88 | /** |
||
89 | * {@inheritdoc} |
||
90 | */ |
||
91 | public function getDeleteUrlFor($item) |
||
98 | |||
99 | /** |
||
100 | * Get the fully qualified class name |
||
101 | * |
||
102 | * @return string |
||
103 | */ |
||
104 | public function getPageClass() |
||
108 | |||
109 | /** |
||
110 | * @param QueryBuilder $queryBuilder |
||
111 | * @param array $params |
||
112 | */ |
||
113 | public function adaptQueryBuilder(QueryBuilder $queryBuilder, array $params = []) |
||
142 | |||
143 | /** |
||
144 | * @param QueryBuilder $qb |
||
145 | */ |
||
146 | private function getCurrentLocaleResults(QueryBuilder $qb) |
||
159 | |||
160 | /** |
||
161 | * @param QueryBuilder $qb |
||
162 | */ |
||
163 | private function getOtherLocalesResults(QueryBuilder $qb) |
||
184 | |||
185 | /** |
||
186 | * Return default repository name. |
||
187 | * |
||
188 | * @return string |
||
189 | */ |
||
190 | public function getRepositoryName() |
||
194 | |||
195 | /** |
||
196 | * @return EntityInterface |
||
197 | */ |
||
198 | abstract public function getOverviewPageClass(); |
||
199 | |||
200 | /** |
||
201 | * Returns the overviewpage. |
||
202 | */ |
||
203 | public function getOverviewPage() |
||
216 | |||
217 | /** |
||
218 | * @return string |
||
219 | */ |
||
220 | abstract public function getReadableName(); |
||
221 | } |
||
222 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.