1 | <?php |
||
24 | class Step extends AbstractFormDefinition implements DataPreProcessorInterface |
||
25 | { |
||
26 | use ParentsTrait; |
||
27 | use StoreArrayIndexTrait; |
||
28 | |||
29 | /** |
||
30 | * @var int |
||
31 | * @validate IntegerValidator |
||
32 | * @validate Romm.Formz:PageExists |
||
33 | */ |
||
34 | protected $pageUid; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $extension; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $controller; |
||
45 | |||
46 | /** |
||
47 | * @var string |
||
48 | * @validate NotEmpty |
||
49 | */ |
||
50 | protected $action; |
||
51 | |||
52 | /** |
||
53 | * @var \Romm\Formz\Form\Definition\Step\Step\SupportedField[] |
||
54 | * @validate NotEmpty |
||
55 | */ |
||
56 | protected $supportedFields; |
||
57 | |||
58 | /** |
||
59 | * @var \Romm\Formz\Form\Definition\Step\Step\Substep\Substeps |
||
60 | */ |
||
61 | protected $substeps; |
||
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getIdentifier() |
||
70 | |||
71 | /** |
||
72 | * @return int |
||
73 | */ |
||
74 | public function getPageUid() |
||
78 | |||
79 | /** |
||
80 | * @return string |
||
81 | */ |
||
82 | public function getExtension() |
||
86 | |||
87 | /** |
||
88 | * @return string |
||
89 | */ |
||
90 | public function getController() |
||
94 | |||
95 | /** |
||
96 | * @return string |
||
97 | */ |
||
98 | public function getAction() |
||
102 | |||
103 | /** |
||
104 | * @return SupportedField[] |
||
105 | */ |
||
106 | public function getSupportedFields() |
||
110 | |||
111 | /** |
||
112 | * @param Field $field |
||
113 | * @return bool |
||
114 | */ |
||
115 | public function supportsField(Field $field) |
||
125 | |||
126 | /** |
||
127 | * @return bool |
||
128 | */ |
||
129 | public function hasSubsteps() |
||
133 | |||
134 | /** |
||
135 | * @return Substeps |
||
136 | */ |
||
137 | public function getSubsteps() |
||
141 | |||
142 | /** |
||
143 | * This function will parse the configuration for `supportedFields`: instead |
||
144 | * of being forced to fill the `fieldName` option for each entry, the field |
||
145 | * key of the entry can be the actual name of the field, and the value of |
||
146 | * the entry can be anything but an array. |
||
147 | * |
||
148 | * @param DataPreProcessor $processor |
||
149 | */ |
||
150 | public static function dataPreProcessor(DataPreProcessor $processor) |
||
171 | } |
||
172 |