1 | <?php |
||
23 | class FormObjectConfiguration |
||
24 | { |
||
25 | /** |
||
26 | * @var FormObjectStatic |
||
27 | */ |
||
28 | protected $static; |
||
29 | |||
30 | /** |
||
31 | * @var FormDefinitionObject |
||
32 | */ |
||
33 | protected $definition; |
||
34 | |||
35 | /** |
||
36 | * @var Result |
||
37 | */ |
||
38 | protected $configurationValidationResult; |
||
39 | |||
40 | /** |
||
41 | * @param FormObjectStatic $static |
||
42 | * @param FormDefinitionObject $definition |
||
43 | */ |
||
44 | public function __construct(FormObjectStatic $static, FormDefinitionObject $definition) |
||
49 | |||
50 | /** |
||
51 | * This function will merge and return the validation results of both the |
||
52 | * global FormZ configuration object, and this form configuration object. |
||
53 | * |
||
54 | * @return Result |
||
55 | */ |
||
56 | public function getConfigurationValidationResult() |
||
64 | |||
65 | /** |
||
66 | * Resets the validation result and merges it with the global FormZ |
||
67 | * configuration. |
||
68 | * |
||
69 | * @return Result |
||
70 | */ |
||
71 | protected function getMergedValidationResult() |
||
82 | |||
83 | /** |
||
84 | * @return Result |
||
85 | */ |
||
86 | protected function getFormDefinitionValidationResult() |
||
93 | |||
94 | /** |
||
95 | * @return Result |
||
96 | */ |
||
97 | protected function getGlobalConfigurationValidationResult() |
||
101 | } |
||
102 |