1 | <?php |
||
14 | class field_controller |
||
15 | { |
||
16 | /** @var \phpbb\event\dispatcher_interface */ |
||
17 | protected $phpbb_dispatcher; |
||
18 | |||
19 | /** @var \phpbb\request\request_interface */ |
||
20 | protected $request; |
||
21 | |||
22 | /** @var \phpbb\template\template */ |
||
23 | protected $template; |
||
24 | |||
25 | /** @var \blitze\sitemaker\services\auto_lang */ |
||
26 | protected $auto_lang; |
||
27 | |||
28 | /** @var \blitze\content\services\form\fields_factory */ |
||
29 | protected $fields_factory; |
||
30 | |||
31 | /** @var string */ |
||
32 | protected $phpbb_admin_path; |
||
33 | |||
34 | /** |
||
35 | * Constructor |
||
36 | * |
||
37 | * @param \phpbb\event\dispatcher_interface $phpbb_dispatcher Event dispatcher object |
||
38 | * @param \phpbb\request\request_interface $request Request object |
||
39 | * @param \phpbb\template\template $template Template object |
||
40 | * @param \blitze\sitemaker\services\auto_lang $auto_lang Auto add lang file |
||
41 | * @param \blitze\content\services\form\fields_factory $fields_factory Fields factory object |
||
42 | */ |
||
43 | public function __construct(\phpbb\event\dispatcher_interface $phpbb_dispatcher, \phpbb\request\request_interface $request, \phpbb\template\template $template, \blitze\sitemaker\services\auto_lang $auto_lang, \blitze\content\services\form\fields_factory $fields_factory) |
||
51 | |||
52 | /** |
||
53 | * @return \Symfony\Component\HttpFoundation\Response |
||
54 | */ |
||
55 | public function handle() |
||
81 | |||
82 | /** |
||
83 | * @return array |
||
84 | */ |
||
85 | protected function get_field_data() |
||
127 | |||
128 | /** |
||
129 | * @param string $prop options|defaults |
||
130 | * @param array $data |
||
131 | * @return void |
||
132 | */ |
||
133 | protected function set_prop($prop, array &$data) |
||
142 | |||
143 | /** |
||
144 | * @param string $field_type |
||
145 | * @param array $data |
||
146 | * @return void |
||
147 | */ |
||
148 | protected function force_prop($field_type, array &$data) |
||
160 | } |
||
161 |