1 | <?php |
||
27 | class DuplicateEntryException extends FormzException |
||
28 | { |
||
29 | const DUPLICATED_FORM_CONTEXT = 'You can not use a form view helper inside another one.'; |
||
30 | |||
31 | const FORM_WAS_ALREADY_REGISTERED = 'The form "%s" was already registered. You can only register a form once. Check the function `%s::hasForm()`.'; |
||
32 | |||
33 | const FORM_INSTANCE_ALREADY_ADDED = 'The form instance was already added for the form object of class "%s". You cannot add it twice.'; |
||
34 | |||
35 | const FIELD_ALREADY_ADDED = 'The field "%s" already exists in the form definition. Please use the function `%s::hasField()` before.'; |
||
36 | |||
37 | const FORM_OBJECT_INSTANCE_ALREADY_REGISTERED = 'The form instance of type "%s" (name "%s") was already registered in the form object factory.'; |
||
38 | |||
39 | const FORM_CONDITION_ALREADY_ADDED = 'The condition "%s" already exists in the form definition. Please use the function `%s::hasCondition()` before.'; |
||
40 | |||
41 | const ACTIVATION_CONDITION_ALREADY_ADDED = 'The condition "%s" already exists for the activation. Please use the function `%s::hasCondition()` before.'; |
||
42 | |||
43 | const FIELD_VALIDATOR_ALREADY_ADDED = 'The validator "%s" already exists for the field "%s". Please use the function `%s::hasValidator()` before.'; |
||
44 | |||
45 | const FIELD_BEHAVIOUR_ALREADY_ADDED = 'The behaviour "%s" already exists for the field "%s". Please use the function `%s::hasBehaviour()` before.'; |
||
46 | |||
47 | const VALIDATOR_MESSAGE_ALREADY_ADDED = 'The message "%s" already exists for the validator "%s". Please use the function `%s::hasMessage()` before.'; |
||
48 | |||
49 | const VIEW_LAYOUT_ALREADY_ADDED = 'The layout "%s" already exists for the view. Please use the function `%s::hasLayout()` before.'; |
||
50 | |||
51 | const LAYOUT_ITEM_ALREADY_ADDED = 'The item "%s" already exists for the layout "%s". Please use the function `%s::hasItem()` before.'; |
||
52 | |||
53 | const MIDDLEWARE_ALREADY_ADDED = 'The middleware "%s" was already added to the form. Please use the function `%s::hasMiddleware()` before.'; |
||
54 | |||
55 | /** |
||
56 | * @code 1465242575 |
||
57 | * |
||
58 | * @return self |
||
59 | */ |
||
60 | final public static function duplicatedFormContext() |
||
67 | |||
68 | /** |
||
69 | * @code 1477255145 |
||
70 | * |
||
71 | * @param FormObjectStatic $form |
||
72 | * @return self |
||
73 | */ |
||
74 | final public static function formWasAlreadyRegistered(FormObjectStatic $form) |
||
84 | |||
85 | /** |
||
86 | * @code 1491898212 |
||
87 | * |
||
88 | * @param FormObject $formObject |
||
89 | * @return self |
||
90 | */ |
||
91 | final public static function formInstanceAlreadyAdded(FormObject $formObject) |
||
101 | |||
102 | /** |
||
103 | * @code 1494515318 |
||
104 | * |
||
105 | * @param FormInterface $form |
||
106 | * @param string $name |
||
107 | * @return self |
||
108 | */ |
||
109 | final public static function formObjectInstanceAlreadyRegistered(FormInterface $form, $name) |
||
119 | |||
120 | /** |
||
121 | * @code 1493881202 |
||
122 | * |
||
123 | * @param string $name |
||
124 | * @return self |
||
125 | */ |
||
126 | final public static function fieldAlreadyAdded($name) |
||
136 | |||
137 | /** |
||
138 | * @code 1493882348 |
||
139 | * |
||
140 | * @param string $name |
||
141 | * @return self |
||
142 | */ |
||
143 | final public static function formConditionAlreadyAdded($name) |
||
153 | |||
154 | /** |
||
155 | * @code 1494329265 |
||
156 | * |
||
157 | * @param string $name |
||
158 | * @return self |
||
159 | */ |
||
160 | final public static function activationConditionAlreadyAdded($name) |
||
170 | |||
171 | /** |
||
172 | * @code 1494685038 |
||
173 | * |
||
174 | * @param string $validatorName |
||
175 | * @param string $fieldName |
||
176 | * @return self |
||
177 | */ |
||
178 | final public static function fieldValidatorAlreadyAdded($validatorName, $fieldName) |
||
188 | |||
189 | /** |
||
190 | * @code 1494685575 |
||
191 | * |
||
192 | * @param string $behaviourName |
||
193 | * @param Field $field |
||
194 | * @return self |
||
195 | */ |
||
196 | final public static function fieldBehaviourAlreadyAdded($behaviourName, Field $field) |
||
206 | |||
207 | /** |
||
208 | * @code 1494694566 |
||
209 | * |
||
210 | * @param string $messageName |
||
211 | * @param Validator $validator |
||
212 | * @return self |
||
213 | */ |
||
214 | final public static function validatorMessageAlreadyAdded($messageName, Validator $validator) |
||
224 | |||
225 | /** |
||
226 | * @code 1494846335 |
||
227 | * |
||
228 | * @param string $name |
||
229 | * @return self |
||
230 | */ |
||
231 | final public static function viewLayoutAlreadyAdded($name) |
||
241 | |||
242 | /** |
||
243 | * @code 1494846944 |
||
244 | * |
||
245 | * @param string $name |
||
246 | * @param LayoutGroup $layoutGroup |
||
247 | * @return self |
||
248 | */ |
||
249 | final public static function layoutItemAlreadyAdded($name, LayoutGroup $layoutGroup) |
||
259 | |||
260 | /** |
||
261 | * @code 1502104500 |
||
262 | * |
||
263 | * @param string $name |
||
264 | * @return self |
||
265 | */ |
||
266 | final public static function middlewareAlreadyAdded($name) |
||
276 | } |
||
277 |