1 | <?php |
||
23 | class DuplicateEntryException extends FormzException |
||
24 | { |
||
25 | const DUPLICATED_FORM_CONTEXT = 'You can not use a form view helper inside another one.'; |
||
26 | |||
27 | const FORM_WAS_ALREADY_REGISTERED = 'The form "%s" was already registered. You can only register a form once. Check the function `%s::hasForm()`.'; |
||
28 | |||
29 | const FORM_INSTANCE_ALREADY_ADDED = 'The form instance was already added for the form object of class "%s". You cannot add it twice.'; |
||
30 | |||
31 | const FIELD_ALREADY_ADDED = 'The field "%s" already exists in the form definition. Please use the function `%s::hasField()` before.'; |
||
32 | |||
33 | const FORM_CONDITION_ALREADY_ADDED = 'The condition "%s" already exists in the form definition. Please use the function `%s::hasCondition()` before.'; |
||
34 | |||
35 | const ACTIVATION_CONDITION_ALREADY_ADDED = 'The condition "%s" already exists for the activation. Please use the function `%s::hasCondition()` before.'; |
||
36 | |||
37 | const FIELD_VALIDATOR_ALREADY_ADDED = 'The validator "%s" already exists for the field "%s". Please use the function `%s::hasValidator()` before.'; |
||
38 | |||
39 | const FIELD_BEHAVIOUR_ALREADY_ADDED = 'The behaviour "%s" already exists for the field "%s". Please use the function `%s::hasBehaviour()` before.'; |
||
40 | |||
41 | /** |
||
42 | * @code 1465242575 |
||
43 | * |
||
44 | * @return self |
||
45 | */ |
||
46 | final public static function duplicatedFormContext() |
||
53 | |||
54 | /** |
||
55 | * @code 1477255145 |
||
56 | * |
||
57 | * @param FormObjectStatic $form |
||
58 | * @return self |
||
59 | */ |
||
60 | final public static function formWasAlreadyRegistered(FormObjectStatic $form) |
||
70 | |||
71 | /** |
||
72 | * @code 1491898212 |
||
73 | * |
||
74 | * @param FormObject $formObject |
||
75 | * @return self |
||
76 | */ |
||
77 | final public static function formInstanceAlreadyAdded(FormObject $formObject) |
||
87 | |||
88 | /** |
||
89 | * @code 1493881202 |
||
90 | * |
||
91 | * @param string $name |
||
92 | * @return self |
||
93 | */ |
||
94 | final public static function fieldAlreadyAdded($name) |
||
104 | |||
105 | /** |
||
106 | * @code 1493882348 |
||
107 | * |
||
108 | * @param string $name |
||
109 | * @return self |
||
110 | */ |
||
111 | final public static function formConditionAlreadyAdded($name) |
||
121 | |||
122 | /** |
||
123 | * @code 1494329265 |
||
124 | * |
||
125 | * @param string $name |
||
126 | * @return self |
||
127 | */ |
||
128 | final public static function activationConditionAlreadyAdded($name) |
||
138 | |||
139 | /** |
||
140 | * @code 1494685038 |
||
141 | * |
||
142 | * @param string $validatorName |
||
143 | * @param string $fieldName |
||
144 | * @return self |
||
145 | */ |
||
146 | final public static function fieldValidatorAlreadyAdded($validatorName, $fieldName) |
||
156 | |||
157 | /** |
||
158 | * @code 1494685575 |
||
159 | * |
||
160 | * @param string $behaviourName |
||
161 | * @param string $fieldName |
||
162 | * @return self |
||
163 | */ |
||
164 | final public static function fieldBehaviourAlreadyAdded($behaviourName, $fieldName) |
||
174 | } |
||
175 |