1 | <?php |
||
22 | class DuplicateEntryException extends FormzException |
||
23 | { |
||
24 | const DUPLICATED_FORM_CONTEXT = 'You can not use a form view helper inside another one.'; |
||
25 | |||
26 | const FORM_WAS_ALREADY_REGISTERED = 'The form "%s" was already registered. You can only register a form once. Check the function `%s::hasForm()`.'; |
||
27 | |||
28 | const FORM_INSTANCE_ALREADY_ADDED = 'The form instance was already added for the form object of class "%s". You cannot add it twice.'; |
||
29 | |||
30 | const FIELD_ALREADY_ADDED = 'The field "%s" already exists in the form definition. Please use the function `%s::hasField()` before.'; |
||
31 | |||
32 | const FORM_CONDITION_ALREADY_ADDED = 'The condition "%s" already exists in the form definition. Please use the function `%s::hasCondition()` before.'; |
||
33 | |||
34 | const ACTIVATION_CONDITION_ALREADY_ADDED = 'The condition "%s" already exists for the activation. Please use the function `%s::hasCondition()` before.'; |
||
35 | |||
36 | /** |
||
37 | * @code 1465242575 |
||
38 | * |
||
39 | * @return self |
||
40 | */ |
||
41 | final public static function duplicatedFormContext() |
||
48 | |||
49 | /** |
||
50 | * @code 1477255145 |
||
51 | * |
||
52 | * @param FormObjectStatic $form |
||
53 | * @return self |
||
54 | */ |
||
55 | final public static function formWasAlreadyRegistered(FormObjectStatic $form) |
||
65 | |||
66 | /** |
||
67 | * @code 1491898212 |
||
68 | * |
||
69 | * @param FormObject $formObject |
||
70 | * @return self |
||
71 | */ |
||
72 | final public static function formInstanceAlreadyAdded(FormObject $formObject) |
||
82 | |||
83 | /** |
||
84 | * @code 1493881202 |
||
85 | * |
||
86 | * @param string $name |
||
87 | * @return self |
||
88 | */ |
||
89 | final public static function fieldAlreadyAdded($name) |
||
99 | |||
100 | /** |
||
101 | * @code 1493882348 |
||
102 | * |
||
103 | * @param string $name |
||
104 | * @return self |
||
105 | */ |
||
106 | final public static function formConditionAlreadyAdded($name) |
||
116 | |||
117 | /** |
||
118 | * @code 1494329265 |
||
119 | * |
||
120 | * @param string $name |
||
121 | * @return self |
||
122 | */ |
||
123 | final public static function activationConditionAlreadyAdded($name) |
||
133 | } |
||
134 |