1 | <?php |
||
21 | class FormObjectConfiguration |
||
22 | { |
||
23 | /** |
||
24 | * @var FormObjectStatic |
||
25 | */ |
||
26 | protected $static; |
||
27 | |||
28 | /** |
||
29 | * @var FormDefinitionObject |
||
30 | */ |
||
31 | protected $definition; |
||
32 | |||
33 | /** |
||
34 | * @var Result |
||
35 | */ |
||
36 | protected $configurationValidationResult; |
||
37 | |||
38 | /** |
||
39 | * @param FormObjectStatic $static |
||
40 | * @param FormDefinitionObject $definition |
||
41 | */ |
||
42 | public function __construct(FormObjectStatic $static, FormDefinitionObject $definition) |
||
47 | |||
48 | /** |
||
49 | * This function will merge and return the validation results of both the |
||
50 | * global FormZ configuration object, and this form configuration object. |
||
51 | * |
||
52 | * @return Result |
||
53 | */ |
||
54 | public function getConfigurationValidationResult() |
||
62 | |||
63 | /** |
||
64 | * Resets the validation result and merges it with the global FormZ |
||
65 | * configuration. |
||
66 | * |
||
67 | * @return Result |
||
68 | */ |
||
69 | protected function getMergedValidationResult() |
||
83 | |||
84 | /** |
||
85 | * @return Result |
||
86 | */ |
||
87 | protected function getGlobalConfigurationValidationResult() |
||
91 | } |
||
92 |