@@ -17,7 +17,6 @@ |
||
17 | 17 | use Sonata\AdminBundle\Admin\FieldDescriptionInterface; |
18 | 18 | use Sonata\AdminBundle\Admin\Pool; |
19 | 19 | use Sonata\AdminBundle\Filter\FilterInterface; |
20 | -use Symfony\Component\Form\Form; |
|
21 | 20 | use Symfony\Component\HttpFoundation\JsonResponse; |
22 | 21 | use Symfony\Component\HttpFoundation\Request; |
23 | 22 | use Symfony\Component\HttpFoundation\Response; |
@@ -48,6 +48,9 @@ discard block |
||
48 | 48 | */ |
49 | 49 | interface AdminInterface extends AccessRegistryInterface, FieldDescriptionRegistryInterface, LifecycleHookProviderInterface, MenuBuilderInterface, ParentAdminInterface, UrlGeneratorInterface |
50 | 50 | { |
51 | + /** |
|
52 | + * @return void |
|
53 | + */ |
|
51 | 54 | public function setMenuFactory(MenuFactoryInterface $menuFactory); |
52 | 55 | |
53 | 56 | /** |
@@ -55,8 +58,14 @@ discard block |
||
55 | 58 | */ |
56 | 59 | public function getMenuFactory(); |
57 | 60 | |
61 | + /** |
|
62 | + * @return void |
|
63 | + */ |
|
58 | 64 | public function setFormContractor(FormContractorInterface $formContractor); |
59 | 65 | |
66 | + /** |
|
67 | + * @return void |
|
68 | + */ |
|
60 | 69 | public function setListBuilder(ListBuilderInterface $listBuilder); |
61 | 70 | |
62 | 71 | /** |
@@ -64,6 +73,9 @@ discard block |
||
64 | 73 | */ |
65 | 74 | public function getListBuilder(); |
66 | 75 | |
76 | + /** |
|
77 | + * @return void |
|
78 | + */ |
|
67 | 79 | public function setDatagridBuilder(DatagridBuilderInterface $datagridBuilder); |
68 | 80 | |
69 | 81 | /** |
@@ -71,6 +83,9 @@ discard block |
||
71 | 83 | */ |
72 | 84 | public function getDatagridBuilder(); |
73 | 85 | |
86 | + /** |
|
87 | + * @return void |
|
88 | + */ |
|
74 | 89 | public function setTranslator(TranslatorInterface $translator); |
75 | 90 | |
76 | 91 | /** |
@@ -78,8 +93,14 @@ discard block |
||
78 | 93 | */ |
79 | 94 | public function getTranslator(); |
80 | 95 | |
96 | + /** |
|
97 | + * @return void |
|
98 | + */ |
|
81 | 99 | public function setRequest(Request $request); |
82 | 100 | |
101 | + /** |
|
102 | + * @return void |
|
103 | + */ |
|
83 | 104 | public function setConfigurationPool(Pool $pool); |
84 | 105 | |
85 | 106 | /** |
@@ -92,6 +113,9 @@ discard block |
||
92 | 113 | */ |
93 | 114 | public function getClass(); |
94 | 115 | |
116 | + /** |
|
117 | + * @return void |
|
118 | + */ |
|
95 | 119 | public function attachAdminClass(FieldDescriptionInterface $fieldDescription); |
96 | 120 | |
97 | 121 | /** |
@@ -103,6 +127,7 @@ discard block |
||
103 | 127 | * Set base controller name. |
104 | 128 | * |
105 | 129 | * @param string $baseControllerName |
130 | + * @return void |
|
106 | 131 | */ |
107 | 132 | public function setBaseControllerName($baseControllerName); |
108 | 133 | |
@@ -177,6 +202,9 @@ discard block |
||
177 | 202 | */ |
178 | 203 | public function getSecurityInformation(); |
179 | 204 | |
205 | + /** |
|
206 | + * @return void |
|
207 | + */ |
|
180 | 208 | public function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription); |
181 | 209 | |
182 | 210 | /** |
@@ -224,6 +252,9 @@ discard block |
||
224 | 252 | */ |
225 | 253 | public function hasRoute($name); |
226 | 254 | |
255 | + /** |
|
256 | + * @return void |
|
257 | + */ |
|
227 | 258 | public function setSecurityHandler(SecurityHandlerInterface $securityHandler); |
228 | 259 | |
229 | 260 | /** |
@@ -251,12 +282,13 @@ discard block |
||
251 | 282 | * |
252 | 283 | * @param object $model |
253 | 284 | * |
254 | - * @return mixed |
|
285 | + * @return string |
|
255 | 286 | */ |
256 | 287 | public function id($model); |
257 | 288 | |
258 | 289 | /** |
259 | 290 | * @param ValidatorInterface $validator |
291 | + * @return void |
|
260 | 292 | */ |
261 | 293 | public function setValidator($validator); |
262 | 294 | |
@@ -270,6 +302,9 @@ discard block |
||
270 | 302 | */ |
271 | 303 | public function getShow(); |
272 | 304 | |
305 | + /** |
|
306 | + * @return void |
|
307 | + */ |
|
273 | 308 | public function setFormTheme(array $formTheme); |
274 | 309 | |
275 | 310 | /** |
@@ -277,6 +312,9 @@ discard block |
||
277 | 312 | */ |
278 | 313 | public function getFormTheme(); |
279 | 314 | |
315 | + /** |
|
316 | + * @return void |
|
317 | + */ |
|
280 | 318 | public function setFilterTheme(array $filterTheme); |
281 | 319 | |
282 | 320 | /** |
@@ -284,6 +322,9 @@ discard block |
||
284 | 322 | */ |
285 | 323 | public function getFilterTheme(); |
286 | 324 | |
325 | + /** |
|
326 | + * @return void |
|
327 | + */ |
|
287 | 328 | public function addExtension(AdminExtensionInterface $extension); |
288 | 329 | |
289 | 330 | /** |
@@ -293,6 +334,9 @@ discard block |
||
293 | 334 | */ |
294 | 335 | public function getExtensions(); |
295 | 336 | |
337 | + /** |
|
338 | + * @return void |
|
339 | + */ |
|
296 | 340 | public function setRouteBuilder(RouteBuilderInterface $routeBuilder); |
297 | 341 | |
298 | 342 | /** |
@@ -307,6 +351,9 @@ discard block |
||
307 | 351 | */ |
308 | 352 | public function toString($object); |
309 | 353 | |
354 | + /** |
|
355 | + * @return void |
|
356 | + */ |
|
310 | 357 | public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy); |
311 | 358 | |
312 | 359 | /** |
@@ -330,6 +377,7 @@ discard block |
||
330 | 377 | |
331 | 378 | /** |
332 | 379 | * @param string $uniqId |
380 | + * @return void |
|
333 | 381 | */ |
334 | 382 | public function setUniqid($uniqId); |
335 | 383 | |
@@ -349,6 +397,7 @@ discard block |
||
349 | 397 | |
350 | 398 | /** |
351 | 399 | * @param object|null $subject |
400 | + * @return void |
|
352 | 401 | */ |
353 | 402 | public function setSubject($subject); |
354 | 403 | |
@@ -380,7 +429,7 @@ discard block |
||
380 | 429 | /** |
381 | 430 | * Returns the collection of list FieldDescriptions. |
382 | 431 | * |
383 | - * @return array |
|
432 | + * @return FieldDescriptionInterface[] |
|
384 | 433 | */ |
385 | 434 | public function getListFieldDescriptions(); |
386 | 435 | |
@@ -398,6 +447,9 @@ discard block |
||
398 | 447 | */ |
399 | 448 | public function getDataSourceIterator(); |
400 | 449 | |
450 | + /** |
|
451 | + * @return void |
|
452 | + */ |
|
401 | 453 | public function configure(); |
402 | 454 | |
403 | 455 | /** |
@@ -405,6 +457,7 @@ discard block |
||
405 | 457 | * |
406 | 458 | * @param string $actionName |
407 | 459 | * @param bool $allElements |
460 | + * @return void |
|
408 | 461 | */ |
409 | 462 | public function preBatchAction($actionName, ProxyQueryInterface $query, array &$idx, $allElements); |
410 | 463 | |
@@ -429,6 +482,7 @@ discard block |
||
429 | 482 | * |
430 | 483 | * @deprecated this feature cannot be stable, use a custom validator, |
431 | 484 | * the feature will be removed with Symfony 2.2 |
485 | + * @return void |
|
432 | 486 | */ |
433 | 487 | public function validate(ErrorElement $errorElement, $object); |
434 | 488 | |
@@ -443,6 +497,7 @@ discard block |
||
443 | 497 | * Add object security, fe. make the current user owner of the object. |
444 | 498 | * |
445 | 499 | * @param object $object |
500 | + * @return void |
|
446 | 501 | */ |
447 | 502 | public function createObjectSecurity($object); |
448 | 503 | |
@@ -451,6 +506,9 @@ discard block |
||
451 | 506 | */ |
452 | 507 | public function getParent(); |
453 | 508 | |
509 | + /** |
|
510 | + * @return void |
|
511 | + */ |
|
454 | 512 | public function setParent(self $admin); |
455 | 513 | |
456 | 514 | /** |
@@ -475,6 +533,7 @@ discard block |
||
475 | 533 | * Set the translation domain. |
476 | 534 | * |
477 | 535 | * @param string $translationDomain the translation domain |
536 | + * @return void |
|
478 | 537 | */ |
479 | 538 | public function setTranslationDomain($translationDomain); |
480 | 539 | |
@@ -496,6 +555,7 @@ discard block |
||
496 | 555 | |
497 | 556 | /** |
498 | 557 | * Set the form groups. |
558 | + * @return void |
|
499 | 559 | */ |
500 | 560 | public function setFormGroups(array $formGroups); |
501 | 561 | |
@@ -504,6 +564,9 @@ discard block |
||
504 | 564 | */ |
505 | 565 | public function getFormTabs(); |
506 | 566 | |
567 | + /** |
|
568 | + * @return void |
|
569 | + */ |
|
507 | 570 | public function setFormTabs(array $formTabs); |
508 | 571 | |
509 | 572 | /** |
@@ -511,12 +574,16 @@ discard block |
||
511 | 574 | */ |
512 | 575 | public function getShowTabs(); |
513 | 576 | |
577 | + /** |
|
578 | + * @return void |
|
579 | + */ |
|
514 | 580 | public function setShowTabs(array $showTabs); |
515 | 581 | |
516 | 582 | /** |
517 | 583 | * Remove a form group field. |
518 | 584 | * |
519 | 585 | * @param string $key |
586 | + * @return void |
|
520 | 587 | */ |
521 | 588 | public function removeFieldFromFormGroup($key); |
522 | 589 | |
@@ -531,6 +598,7 @@ discard block |
||
531 | 598 | |
532 | 599 | /** |
533 | 600 | * Set the show groups. |
601 | + * @return void |
|
534 | 602 | */ |
535 | 603 | public function setShowGroups(array $showGroups); |
536 | 604 | |
@@ -538,6 +606,7 @@ discard block |
||
538 | 606 | * Reorder items in showGroup. |
539 | 607 | * |
540 | 608 | * @param string $group |
609 | + * @return void |
|
541 | 610 | */ |
542 | 611 | public function reorderShowGroup($group, array $keys); |
543 | 612 | |
@@ -545,6 +614,7 @@ discard block |
||
545 | 614 | * add a FieldDescription. |
546 | 615 | * |
547 | 616 | * @param string $name |
617 | + * @return void |
|
548 | 618 | */ |
549 | 619 | public function addFormFieldDescription($name, FieldDescriptionInterface $fieldDescription); |
550 | 620 | |
@@ -552,6 +622,7 @@ discard block |
||
552 | 622 | * Remove a FieldDescription. |
553 | 623 | * |
554 | 624 | * @param string $name |
625 | + * @return void |
|
555 | 626 | */ |
556 | 627 | public function removeFormFieldDescription($name); |
557 | 628 | |
@@ -564,6 +635,7 @@ discard block |
||
564 | 635 | |
565 | 636 | /** |
566 | 637 | * Sets the list of supported sub classes. |
638 | + * @return void |
|
567 | 639 | */ |
568 | 640 | public function setSubClasses(array $subClasses); |
569 | 641 | |
@@ -632,6 +704,7 @@ discard block |
||
632 | 704 | * Set the current child status. |
633 | 705 | * |
634 | 706 | * @param bool $currentChild |
707 | + * @return void |
|
635 | 708 | */ |
636 | 709 | public function setCurrentChild($currentChild); |
637 | 710 | |
@@ -681,6 +754,7 @@ discard block |
||
681 | 754 | |
682 | 755 | /** |
683 | 756 | * @param string $mode |
757 | + * @return void |
|
684 | 758 | */ |
685 | 759 | public function setListMode($mode); |
686 | 760 |