1 | <?php |
||
24 | class FormObjectStatic |
||
25 | { |
||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $className; |
||
30 | |||
31 | /** |
||
32 | * @var FormDefinitionObject |
||
33 | */ |
||
34 | protected $definition; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $objectHash; |
||
40 | |||
41 | /** |
||
42 | * @var FormObjectConfiguration |
||
43 | */ |
||
44 | protected $configurationService; |
||
45 | |||
46 | /** |
||
47 | * @var FormObjectProperties |
||
48 | */ |
||
49 | protected $propertiesService; |
||
50 | |||
51 | /** |
||
52 | * @param string $className |
||
53 | * @param FormDefinitionObject $definition |
||
54 | */ |
||
55 | public function __construct($className, FormDefinitionObject $definition) |
||
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getClassName() |
||
70 | |||
71 | /** |
||
72 | * @return FormDefinition |
||
73 | */ |
||
74 | public function getDefinition() |
||
78 | |||
79 | /** |
||
80 | * This function will merge and return the validation results of both the |
||
81 | * global FormZ configuration object, and this form configuration object. |
||
82 | * |
||
83 | * @return Result |
||
84 | */ |
||
85 | public function getDefinitionValidationResult() |
||
89 | |||
90 | /** |
||
91 | * Returns the hash of the form object, which should be calculated only once |
||
92 | * for performance concerns. |
||
93 | * |
||
94 | * @return string |
||
95 | */ |
||
96 | public function getObjectHash() |
||
104 | |||
105 | /** |
||
106 | * @return array |
||
107 | */ |
||
108 | public function getProperties() |
||
112 | |||
113 | /** |
||
114 | * Returns the calculated hash of the form object. |
||
115 | * |
||
116 | * @return string |
||
117 | */ |
||
118 | protected function calculateObjectHash() |
||
129 | } |
||
130 |