1
|
|
|
<?php |
2
|
|
|
namespace EWW\Dpf\Domain\Model; |
3
|
|
|
|
4
|
|
|
/* |
5
|
|
|
* This file is part of the TYPO3 CMS project. |
6
|
|
|
* |
7
|
|
|
* It is free software; you can redistribute it and/or modify it under |
8
|
|
|
* the terms of the GNU General Public License, either version 2 |
9
|
|
|
* of the License, or any later version. |
10
|
|
|
* |
11
|
|
|
* For the full copyright and license information, please read the |
12
|
|
|
* LICENSE.txt file that was distributed with this source code. |
13
|
|
|
* |
14
|
|
|
* The TYPO3 project - inspiring people to share! |
15
|
|
|
*/ |
16
|
|
|
|
17
|
|
|
class DocumentFormGroup extends AbstractFormElement |
18
|
|
|
{ |
19
|
|
|
|
20
|
|
|
/** |
21
|
|
|
* infoText |
22
|
|
|
* |
23
|
|
|
* @var string |
24
|
|
|
*/ |
25
|
|
|
protected $infoText; |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* @var string |
29
|
|
|
*/ |
30
|
|
|
protected $groupType; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @var bool |
34
|
|
|
*/ |
35
|
|
|
protected $emptyGroup = false; |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* @var string |
39
|
|
|
*/ |
40
|
|
|
protected $optionalGroups = ''; |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* @var string |
44
|
|
|
*/ |
45
|
|
|
protected $requiredGroups = ''; |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* Returns the infoText |
49
|
|
|
* |
50
|
|
|
* @return string $infoText |
51
|
|
|
*/ |
52
|
|
|
public function getInfoText() |
53
|
|
|
{ |
54
|
|
|
return $this->infoText; |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* Sets the infoText |
59
|
|
|
* |
60
|
|
|
* @param string $infoText |
61
|
|
|
* @return void |
62
|
|
|
*/ |
63
|
|
|
public function setInfoText($infoText) |
64
|
|
|
{ |
65
|
|
|
$this->infoText = $infoText; |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @return mixed |
70
|
|
|
*/ |
71
|
|
|
public function getGroupType() |
72
|
|
|
{ |
73
|
|
|
return $this->groupType; |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* @param mixed $groupType |
78
|
|
|
*/ |
79
|
|
|
public function setGroupType($groupType) |
80
|
|
|
{ |
81
|
|
|
$this->groupType = $groupType; |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* @return bool |
86
|
|
|
*/ |
87
|
|
|
public function isEmptyGroup(): bool |
88
|
|
|
{ |
89
|
|
|
return $this->emptyGroup; |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @param bool $emptyGroup |
94
|
|
|
*/ |
95
|
|
|
public function setEmptyGroup(bool $emptyGroup): void |
96
|
|
|
{ |
97
|
|
|
$this->emptyGroup = boolval($emptyGroup); |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* @return string |
102
|
|
|
*/ |
103
|
|
|
public function getOptionalGroups(): string |
104
|
|
|
{ |
105
|
|
|
return $this->optionalGroups; |
106
|
|
|
} |
107
|
|
|
|
108
|
|
|
/** |
109
|
|
|
* @param string $optionalGroups |
110
|
|
|
*/ |
111
|
|
|
public function setOptionalGroups(string $optionalGroups): void |
112
|
|
|
{ |
113
|
|
|
$this->optionalGroups = $optionalGroups; |
114
|
|
|
} |
115
|
|
|
|
116
|
|
|
/** |
117
|
|
|
* @return string |
118
|
|
|
*/ |
119
|
|
|
public function getRequiredGroups(): string |
120
|
|
|
{ |
121
|
|
|
return $this->requiredGroups; |
122
|
|
|
} |
123
|
|
|
|
124
|
|
|
/** |
125
|
|
|
* @param string $requiredGroups |
126
|
|
|
*/ |
127
|
|
|
public function setRequiredGroups(string $requiredGroups): void |
128
|
|
|
{ |
129
|
|
|
$this->requiredGroups = $requiredGroups; |
130
|
|
|
} |
131
|
|
|
|
132
|
|
|
|
133
|
|
|
|
134
|
|
|
} |
135
|
|
|
|