1 | <?php |
||
14 | class FormBuilder |
||
15 | { |
||
16 | /** |
||
17 | * @var FormFactoryInterface |
||
18 | */ |
||
19 | protected $formFactory; |
||
20 | |||
21 | /** |
||
22 | * @var bool |
||
23 | */ |
||
24 | protected $useCsrf; |
||
25 | |||
26 | /** |
||
27 | * @var ContentTypeService |
||
28 | */ |
||
29 | protected $contentTypeService; |
||
30 | |||
31 | /** |
||
32 | * @var RouterInterface |
||
33 | */ |
||
34 | protected $router; |
||
35 | |||
36 | /** |
||
37 | * FormBuilder constructor. |
||
38 | * |
||
39 | * @param FormFactoryInterface $formFactory |
||
40 | * @param ContentTypeService $contentTypeService |
||
41 | * @param RouterInterface $router |
||
42 | * @param bool $useCsrf |
||
43 | */ |
||
44 | public function __construct( |
||
55 | |||
56 | /** |
||
57 | * Creates Information collection Form object for given Location object. |
||
58 | * |
||
59 | * @param Location $location |
||
60 | * |
||
61 | * @return FormBuilderInterface |
||
62 | */ |
||
63 | public function createFormForLocation(Location $location) |
||
67 | |||
68 | /** |
||
69 | * Creates Information collection Form object for given Location object. |
||
70 | * Form handling is supposed to be done by Ajax. |
||
71 | * |
||
72 | * @param Location $location |
||
73 | * |
||
74 | * @return FormBuilderInterface |
||
75 | */ |
||
76 | public function createFormForLocationWithAjax(Location $location) |
||
83 | |||
84 | /** |
||
85 | * Creates FormBuilder with default settings |
||
86 | * |
||
87 | * @param Location $location |
||
88 | * |
||
89 | * @return FormBuilderInterface |
||
90 | */ |
||
91 | protected function createBuilder(Location $location) |
||
108 | } |
||
109 |