1 | <?php |
||
24 | class DuplicateEntryException extends FormzException |
||
25 | { |
||
26 | const DUPLICATED_FORM_CONTEXT = 'You can not use a form view helper inside another one.'; |
||
27 | |||
28 | const FORM_WAS_ALREADY_REGISTERED = 'The form "%s" was already registered. You can only register a form once. Check the function `%s::hasForm()`.'; |
||
29 | |||
30 | const FORM_INSTANCE_ALREADY_ADDED = 'The form instance was already added for the form object of class "%s". You cannot add it twice.'; |
||
31 | |||
32 | const FORM_OBJECT_INSTANCE_ALREADY_REGISTERED = 'The form instance of type "%s" (name "%s") was already registered in the form object factory.'; |
||
33 | |||
34 | const FIELD_ALREADY_ADDED = 'The field "%s" already exists in the form definition. Please use the function `%s::hasField()` before.'; |
||
35 | |||
36 | const FORM_CONDITION_ALREADY_ADDED = 'The condition "%s" already exists in the form definition. Please use the function `%s::hasCondition()` before.'; |
||
37 | |||
38 | const ACTIVATION_CONDITION_ALREADY_ADDED = 'The condition "%s" already exists for the activation. Please use the function `%s::hasCondition()` before.'; |
||
39 | |||
40 | const FIELD_VALIDATOR_ALREADY_ADDED = 'The validator "%s" already exists for the field "%s". Please use the function `%s::hasValidator()` before.'; |
||
41 | |||
42 | const FIELD_BEHAVIOUR_ALREADY_ADDED = 'The behaviour "%s" already exists for the field "%s". Please use the function `%s::hasBehaviour()` before.'; |
||
43 | |||
44 | /** |
||
45 | * @code 1465242575 |
||
46 | * |
||
47 | * @return self |
||
48 | */ |
||
49 | final public static function duplicatedFormContext() |
||
56 | |||
57 | /** |
||
58 | * @code 1477255145 |
||
59 | * |
||
60 | * @param FormObjectStatic $form |
||
61 | * @return self |
||
62 | */ |
||
63 | final public static function formWasAlreadyRegistered(FormObjectStatic $form) |
||
73 | |||
74 | /** |
||
75 | * @code 1491898212 |
||
76 | * |
||
77 | * @param FormObject $formObject |
||
78 | * @return self |
||
79 | */ |
||
80 | final public static function formInstanceAlreadyAdded(FormObject $formObject) |
||
90 | |||
91 | /** |
||
92 | * @code 1494515318 |
||
93 | * |
||
94 | * @param FormInterface $form |
||
95 | * @param string $name |
||
96 | * @return self |
||
97 | */ |
||
98 | final public static function formObjectInstanceAlreadyRegistered(FormInterface $form, $name) |
||
108 | |||
109 | /** |
||
110 | * @code 1493881202 |
||
111 | * |
||
112 | * @param string $name |
||
113 | * @return self |
||
114 | */ |
||
115 | final public static function fieldAlreadyAdded($name) |
||
125 | |||
126 | /** |
||
127 | * @code 1493882348 |
||
128 | * |
||
129 | * @param string $name |
||
130 | * @return self |
||
131 | */ |
||
132 | final public static function formConditionAlreadyAdded($name) |
||
142 | |||
143 | /** |
||
144 | * @code 1494329265 |
||
145 | * |
||
146 | * @param string $name |
||
147 | * @return self |
||
148 | */ |
||
149 | final public static function activationConditionAlreadyAdded($name) |
||
159 | |||
160 | /** |
||
161 | * @code 1494685038 |
||
162 | * |
||
163 | * @param string $validatorName |
||
164 | * @param string $fieldName |
||
165 | * @return self |
||
166 | */ |
||
167 | final public static function fieldValidatorAlreadyAdded($validatorName, $fieldName) |
||
177 | |||
178 | /** |
||
179 | * @code 1494685575 |
||
180 | * |
||
181 | * @param string $behaviourName |
||
182 | * @param string $fieldName |
||
183 | * @return self |
||
184 | */ |
||
185 | final public static function fieldBehaviourAlreadyAdded($behaviourName, $fieldName) |
||
195 | } |
||
196 |