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 | */ |
||
55 | protected $supportedFields; |
||
56 | |||
57 | /** |
||
58 | * @var \Romm\Formz\Form\Definition\Step\Step\SubStep\SubSteps |
||
59 | */ |
||
60 | protected $subSteps; |
||
61 | |||
62 | /** |
||
63 | * @return string |
||
64 | */ |
||
65 | public function getName() |
||
69 | |||
70 | /** |
||
71 | * @return int |
||
72 | */ |
||
73 | public function getPageUid() |
||
77 | |||
78 | /** |
||
79 | * @return string |
||
80 | */ |
||
81 | public function getExtension() |
||
85 | |||
86 | /** |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getController() |
||
93 | |||
94 | /** |
||
95 | * @return string |
||
96 | */ |
||
97 | public function getAction() |
||
101 | |||
102 | /** |
||
103 | * @return SupportedField[] |
||
104 | */ |
||
105 | public function getSupportedFields() |
||
109 | |||
110 | /** |
||
111 | * @param Field $field |
||
112 | * @return bool |
||
113 | */ |
||
114 | public function supportsField(Field $field) |
||
124 | |||
125 | /** |
||
126 | * @return SubSteps |
||
127 | */ |
||
128 | public function getSubSteps() |
||
132 | |||
133 | /** |
||
134 | * This function will parse the configuration for `supportedFields`: instead |
||
135 | * of being forced to fill the `fieldName` option for each entry, the field |
||
136 | * key of the entry can be the actual name of the field, and the value of |
||
137 | * the entry can be anything but an array. |
||
138 | * |
||
139 | * @param DataPreProcessor $processor |
||
140 | */ |
||
141 | public static function dataPreProcessor(DataPreProcessor $processor) |
||
162 | } |
||
163 |