1 | <?php |
||
31 | class EntryNotFoundException extends FormzException |
||
32 | { |
||
33 | const FIELD_NOT_FOUND = 'The field "%s" was not found in the form "%s" with class "%s".'; |
||
34 | |||
35 | const CONDITION_NOT_FOUND = 'Trying to access a condition which is not registered: "%s". Here is a list of all currently registered conditions: "%s".'; |
||
36 | |||
37 | const ACTIVATION_CONDITION_NOT_FOUND = 'No condition "%s" was found.'; |
||
38 | |||
39 | const CONFIGURATION_FIELD_NOT_FOUND = 'The field "%s" was not found. Please use the function `%s::hasField()` before.'; |
||
40 | |||
41 | const VALIDATION_NOT_FOUND = 'The validation "%s" was not found. Please use the function `%s::hasValidation()` before.'; |
||
42 | |||
43 | const VIEW_LAYOUT_NOT_FOUND = 'The layout "%s" was not found. Please use the function `%s::hasLayout()` before.'; |
||
44 | |||
45 | const VIEW_LAYOUT_ITEM_NOT_FOUND = 'The layout item "%s" was not found. Please use the function `%s::hasItem()` before.'; |
||
46 | |||
47 | const VIEW_CLASS_NOT_FOUND = 'The class "%s" was not found. Please use the function `%s::hasItem()` before.'; |
||
48 | |||
49 | const VALIDATION_NOT_FOUND_FOR_FIELD = 'The field "%s" does not have a rule "%s".'; |
||
50 | |||
51 | const ERROR_KEY_NOT_FOUND_FOR_VALIDATOR = 'The error key "%s" does not exist for the validator "%s".'; |
||
52 | |||
53 | const VIEW_HELPER_FIELD_NOT_FOUND = 'The field "%s" could not be fetched for the view helper "%s": please either use this view helper inside the view helper "%s", or fill the parameter `field` of this view helper with the field name you want.'; |
||
54 | |||
55 | const FIELD_VIEW_HELPER_LAYOUT_NOT_FOUND = 'The layout "%s" could not be found. Please check your TypoScript configuration.'; |
||
56 | |||
57 | const FIELD_VIEW_HELPER_LAYOUT_ITEM_NOT_FOUND = 'The layout "%s" does not have an item "%s".'; |
||
58 | |||
59 | const CONTROLLER_SERVICE_ACTION_FORM_ARGUMENT_MISSING = 'The method `%s::%s()` must have a parameter `$%s`. Note that you can also change the parameter `name` of the form view helper.'; |
||
60 | |||
61 | const SLOT_NOT_FOUND = 'No slot "%s" was found.'; |
||
62 | |||
63 | const ARGUMENT_NOT_FOUND = 'Trying to get an argument that does not exist: "%s". Please use function `has()`.'; |
||
64 | |||
65 | const FORM_REQUEST_DATA_NOT_FOUND = 'The data "%s" was not found. Please use the function `%s::hasData()` before.'; |
||
66 | |||
67 | const PERSISTENCE_SESSION_ENTRY_NOT_FOUND = 'The form with identifier "%s" was not found in the session, please use the function `%s::has()` before.'; |
||
68 | |||
69 | const FORM_OBJECT_NOT_FOUND = 'The form object of the form instance "%s" was not found. This error should never be thrown: you are using a form which did not follow FormZ workflow.'; |
||
70 | |||
71 | /** |
||
72 | * @code 1472650209 |
||
73 | * |
||
74 | * @param string $name |
||
75 | * @param array $list |
||
76 | * @return self |
||
77 | */ |
||
78 | final public static function conditionNotFound($name, array $list) |
||
91 | |||
92 | /** |
||
93 | * @code 1488482191 |
||
94 | * |
||
95 | * @param string $name |
||
96 | * @return self |
||
97 | */ |
||
98 | final public static function activationConditionNotFound($name) |
||
108 | |||
109 | /** |
||
110 | * @code 1489765133 |
||
111 | * |
||
112 | * @param string $name |
||
113 | * @return self |
||
114 | */ |
||
115 | final public static function configurationFieldNotFound($name) |
||
125 | |||
126 | /** |
||
127 | * @code 1487672276 |
||
128 | * |
||
129 | * @param string $name |
||
130 | * @return self |
||
131 | */ |
||
132 | final public static function validationNotFound($name) |
||
142 | |||
143 | /** |
||
144 | * @code 1489753952 |
||
145 | * |
||
146 | * @param string $name |
||
147 | * @return self |
||
148 | */ |
||
149 | final public static function viewLayoutNotFound($name) |
||
159 | |||
160 | /** |
||
161 | * @code 1489757511 |
||
162 | * |
||
163 | * @param string $name |
||
164 | * @return self |
||
165 | */ |
||
166 | final public static function viewLayoutItemNotFound($name) |
||
176 | |||
177 | /** |
||
178 | * @code 1489754909 |
||
179 | * |
||
180 | * @param string $name |
||
181 | * @return self |
||
182 | */ |
||
183 | final public static function viewClassNotFound($name) |
||
193 | |||
194 | /** |
||
195 | * @code 1487672956 |
||
196 | * |
||
197 | * @param string $validationName |
||
198 | * @param string $fieldName |
||
199 | * @return self |
||
200 | */ |
||
201 | final public static function ajaxControllerValidationNotFoundForField($validationName, $fieldName) |
||
211 | |||
212 | /** |
||
213 | * @code 1487671603 |
||
214 | * |
||
215 | * @param string $fieldName |
||
216 | * @param FormObject $formObject |
||
217 | * @return self |
||
218 | */ |
||
219 | final public static function ajaxControllerFieldNotFound($fieldName, FormObject $formObject) |
||
229 | |||
230 | /** |
||
231 | * @code 1455272659 |
||
232 | * |
||
233 | * @param string $key |
||
234 | * @param AbstractValidator $validator |
||
235 | * @return self |
||
236 | */ |
||
237 | final public static function errorKeyNotFoundForValidator($key, AbstractValidator $validator) |
||
247 | |||
248 | /** |
||
249 | * @code 1487947224 |
||
250 | * |
||
251 | * @param string $fieldName |
||
252 | * @param FormObject $formObject |
||
253 | * @return self |
||
254 | */ |
||
255 | final public static function equalsToFieldValidatorFieldNotFound($fieldName, FormObject $formObject) |
||
265 | |||
266 | /** |
||
267 | * @code 1467623761 |
||
268 | * |
||
269 | * @param string $fieldName |
||
270 | * @return self |
||
271 | */ |
||
272 | final public static function classViewHelperFieldNotFound($fieldName) |
||
282 | |||
283 | /** |
||
284 | * @code 1467624152 |
||
285 | * |
||
286 | * @param string $fieldName |
||
287 | * @return self |
||
288 | */ |
||
289 | final public static function formatMessageViewHelperFieldNotFound($fieldName) |
||
299 | |||
300 | /** |
||
301 | * @code 1465243586 |
||
302 | * |
||
303 | * @param string $layoutName |
||
304 | * @return self |
||
305 | */ |
||
306 | final public static function fieldViewHelperLayoutNotFound($layoutName) |
||
316 | |||
317 | /** |
||
318 | * @code 1485867803 |
||
319 | * |
||
320 | * @param string $layoutName |
||
321 | * @param string $itemName |
||
322 | * @return self |
||
323 | */ |
||
324 | final public static function fieldViewHelperLayoutItemNotFound($layoutName, $itemName) |
||
334 | |||
335 | /** |
||
336 | * @code 1473084335 |
||
337 | * |
||
338 | * @param string $fieldName |
||
339 | * @param FormObject $formObject |
||
340 | * @return self |
||
341 | */ |
||
342 | final public static function formatMessageViewHelperFieldNotFoundInForm($fieldName, FormObject $formObject) |
||
352 | |||
353 | /** |
||
354 | * @code 1457441846 |
||
355 | * |
||
356 | * @param string $controllerObjectName |
||
357 | * @param string $actionName |
||
358 | * @param string $formName |
||
359 | * @return self |
||
360 | */ |
||
361 | final public static function controllerServiceActionFormArgumentMissing($controllerObjectName, $actionName, $formName) |
||
371 | |||
372 | /** |
||
373 | * @code 1488988452 |
||
374 | * |
||
375 | * @param string $name |
||
376 | * @return self |
||
377 | */ |
||
378 | final public static function slotClosureSlotNotFound($name) |
||
388 | |||
389 | /** |
||
390 | * @code 1489497046 |
||
391 | * |
||
392 | * @param string $name |
||
393 | * @return self |
||
394 | */ |
||
395 | final public static function slotArgumentsSlotNotFound($name) |
||
405 | |||
406 | /** |
||
407 | * @code 1490792697 |
||
408 | * |
||
409 | * @param string $name |
||
410 | * @return self |
||
411 | */ |
||
412 | final public static function argumentNotFound($name) |
||
422 | |||
423 | /** |
||
424 | * @code 1490799273 |
||
425 | * |
||
426 | * @param string $name |
||
427 | * @return self |
||
428 | */ |
||
429 | final public static function formRequestDataNotFound($name) |
||
439 | |||
440 | /** |
||
441 | * @code 1491293933 |
||
442 | * |
||
443 | * @param FormIdentifierObject $identifierObject |
||
444 | * @return EntryNotFoundException |
||
445 | */ |
||
446 | final public static function persistenceSessionEntryNotFound(FormIdentifierObject $identifierObject) |
||
456 | |||
457 | /** |
||
458 | * @code 1491481877 |
||
459 | * |
||
460 | * @param FormTrait $form |
||
|
|||
461 | * @return EntryNotFoundException |
||
462 | */ |
||
463 | final public static function formObjectNotFound(FormTrait $form) |
||
473 | } |
||
474 |