1 | <?php |
||
20 | class DuplicateEntryException extends FormzException |
||
21 | { |
||
22 | const DUPLICATED_FORM_CONTEXT = 'You can not use a form view helper inside another one.'; |
||
23 | |||
24 | const FORM_WAS_ALREADY_REGISTERED = 'The form "%s" was already registered. You can only register a form once. Check the function `%s::hasForm()`.'; |
||
25 | |||
26 | const FORM_INSTANCE_ALREADY_ADDED = 'The form instance was already added for the form object of class "%s". You cannot add it twice.'; |
||
27 | |||
28 | /** |
||
29 | * @code 1465242575 |
||
30 | * |
||
31 | * @return self |
||
32 | */ |
||
33 | final public static function duplicatedFormContext() |
||
40 | |||
41 | /** |
||
42 | * @code 1477255145 |
||
43 | * |
||
44 | * @param FormObjectStatic $form |
||
45 | * @return self |
||
46 | */ |
||
47 | final public static function formWasAlreadyRegistered(FormObjectStatic $form) |
||
57 | |||
58 | /** |
||
59 | * @code 1491898212 |
||
60 | * |
||
61 | * @param FormObject $formObject |
||
62 | * @return self |
||
63 | */ |
||
64 | final public static function formInstanceAlreadyAdded(FormObject $formObject) |
||
74 | } |
||
75 |