1 | <?php |
||
25 | class Step extends AbstractFormDefinitionComponent implements DataPreProcessorInterface |
||
26 | { |
||
27 | use ParentsTrait; |
||
28 | use StoreArrayIndexTrait; |
||
29 | |||
30 | /** |
||
31 | * @var int |
||
32 | * @validate IntegerValidator |
||
33 | * @validate Romm.Formz:PageExists |
||
34 | */ |
||
35 | protected $pageUid; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | protected $extension; |
||
41 | |||
42 | /** |
||
43 | * @var string |
||
44 | */ |
||
45 | protected $controller; |
||
46 | |||
47 | /** |
||
48 | * @var string |
||
49 | * @validate NotEmpty |
||
50 | */ |
||
51 | protected $action; |
||
52 | |||
53 | /** |
||
54 | * @var string[] |
||
55 | */ |
||
56 | protected $authorizedActions = []; |
||
57 | |||
58 | /** |
||
59 | * @var \Romm\Formz\Form\Definition\Step\Step\SupportedField[] |
||
60 | */ |
||
61 | protected $supportedFields; |
||
62 | |||
63 | /** |
||
64 | * @var \Romm\Formz\Form\Definition\Step\Step\Substep\Substeps |
||
65 | */ |
||
66 | protected $substeps; |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getIdentifier() |
||
75 | |||
76 | /** |
||
77 | * @return int |
||
78 | */ |
||
79 | public function getPageUid() |
||
83 | |||
84 | /** |
||
85 | * @return string |
||
86 | */ |
||
87 | public function getExtension() |
||
91 | |||
92 | /** |
||
93 | * @return string |
||
94 | */ |
||
95 | public function getController() |
||
99 | |||
100 | /** |
||
101 | * @return string |
||
102 | */ |
||
103 | public function getAction() |
||
107 | |||
108 | /** |
||
109 | * @return array |
||
110 | */ |
||
111 | public function getAuthorizedActions() |
||
115 | |||
116 | /** |
||
117 | * @return SupportedField[] |
||
118 | */ |
||
119 | public function getSupportedFields() |
||
123 | |||
124 | /** |
||
125 | * @param string $fieldName |
||
126 | */ |
||
127 | public function addSupportedField($fieldName) |
||
132 | |||
133 | /** |
||
134 | * @param Field $field |
||
135 | * @return bool |
||
136 | */ |
||
137 | public function supportsField(Field $field) |
||
147 | |||
148 | /** |
||
149 | * @return bool |
||
150 | */ |
||
151 | public function hasSubsteps() |
||
155 | |||
156 | /** |
||
157 | * Alias for Fluid usage. |
||
158 | * |
||
159 | * @return bool |
||
160 | */ |
||
161 | public function getHasSubsteps() |
||
165 | |||
166 | /** |
||
167 | * @return Substeps |
||
168 | */ |
||
169 | public function getSubsteps() |
||
177 | |||
178 | /** |
||
179 | * This function will parse the configuration for `supportedFields`: instead |
||
180 | * of being forced to fill the `fieldName` option for each entry, the field |
||
181 | * key of the entry can be the actual name of the field, and the value of |
||
182 | * the entry can be anything but an array. |
||
183 | * |
||
184 | * @param DataPreProcessor $processor |
||
185 | */ |
||
186 | public static function dataPreProcessor(DataPreProcessor $processor) |
||
207 | } |
||
208 |