1 | <?php |
||
18 | class PropertyNotAccessibleException extends FormzException |
||
19 | { |
||
20 | const FIELD_NOT_ACCESSIBLE_IN_FORM = 'The form "%s" does not have an accessible property "%s". Please be sure this property exists, and it has a proper getter to access its value.'; |
||
21 | |||
22 | const FORM_INSTANCE_NOT_SET = 'The form instance is not accessible yet. You must use proxy methods after the form instance has been injected in the form object.'; |
||
23 | |||
24 | const ROOT_CONFIGURATION_FROZEN_METHOD = 'Trying to call the method "%s::%s()" when the root configuration has been frozen. If you need to modify the root configuration, you can use the post configuration process signal.'; |
||
25 | |||
26 | const FORM_DEFINITION_FROZEN_METHOD = 'Trying to call the method "%s::%s()" when the form definition has been frozen. If you need to modify the form definition, you must do it in the form object builder only.'; |
||
27 | |||
28 | const CONFIGURATION_OBJECT_FROZEN_PROPERTY = 'The property "%s::$%s" cannot be modified this way.'; |
||
29 | |||
30 | /** |
||
31 | * @code 1465243619 |
||
32 | * |
||
33 | * @param FormObject $formObject |
||
34 | * @param string $fieldName |
||
35 | * @return self |
||
36 | */ |
||
37 | final public static function fieldViewHelperFieldNotAccessibleInForm(FormObject $formObject, $fieldName) |
||
47 | |||
48 | /** |
||
49 | * @code 1491815527 |
||
50 | * |
||
51 | * @return self |
||
52 | */ |
||
53 | final public static function formInstanceNotSet() |
||
60 | |||
61 | /** |
||
62 | * @code 1494839287 |
||
63 | * |
||
64 | * @param string $className |
||
65 | * @param string $methodName |
||
66 | * @return self |
||
67 | */ |
||
68 | final public static function rootConfigurationFrozenMethod($className, $methodName) |
||
78 | |||
79 | /** |
||
80 | * @code 1494839741 |
||
81 | * |
||
82 | * @param string $className |
||
83 | * @param string $propertyName |
||
84 | * @return self |
||
85 | */ |
||
86 | final public static function rootConfigurationFrozenProperty($className, $propertyName) |
||
96 | |||
97 | /** |
||
98 | * @code 1494440357 |
||
99 | * |
||
100 | * @param string $className |
||
101 | * @param string $methodName |
||
102 | * @return self |
||
103 | */ |
||
104 | final public static function formDefinitionFrozenMethod($className, $methodName) |
||
114 | |||
115 | /** |
||
116 | * @code 1494440395 |
||
117 | * |
||
118 | * @param string $className |
||
119 | * @param string $propertyName |
||
120 | * @return self |
||
121 | */ |
||
122 | final public static function formDefinitionFrozenProperty($className, $propertyName) |
||
132 | } |
||
133 |