1 | <?php |
||
21 | class Field extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
||
22 | { |
||
23 | /** |
||
24 | * The title |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $title = ''; |
||
29 | |||
30 | /** |
||
31 | * Type - possible values |
||
32 | * |
||
33 | * "input", "radio", "check", "textarea" |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $type = ''; |
||
38 | |||
39 | /** |
||
40 | * Field is required |
||
41 | * |
||
42 | * @var bool |
||
43 | */ |
||
44 | protected $required = false; |
||
45 | |||
46 | /** |
||
47 | * Placeholder |
||
48 | * |
||
49 | * @var string |
||
50 | */ |
||
51 | protected $placeholder = ''; |
||
52 | |||
53 | /** |
||
54 | * Default value |
||
55 | * |
||
56 | * @var string |
||
57 | */ |
||
58 | protected $defaultValue = ''; |
||
59 | |||
60 | /** |
||
61 | * Settings |
||
62 | * |
||
63 | * @var string |
||
64 | */ |
||
65 | protected $settings = ''; |
||
66 | |||
67 | /** |
||
68 | * @var \DERHANSEN\SfEventMgt\Domain\Model\Event |
||
69 | */ |
||
70 | protected $event = null; |
||
71 | |||
72 | /** |
||
73 | * Returns the title |
||
74 | * |
||
75 | * @return string |
||
76 | */ |
||
77 | public function getTitle() |
||
81 | |||
82 | /** |
||
83 | * Sets the title |
||
84 | * |
||
85 | * @param string $title |
||
86 | * @return void |
||
87 | */ |
||
88 | public function setTitle($title) |
||
92 | |||
93 | /** |
||
94 | * Returns the type |
||
95 | * |
||
96 | * @return string |
||
97 | */ |
||
98 | public function getType() |
||
102 | |||
103 | /** |
||
104 | * Sets the type |
||
105 | * |
||
106 | * @param string $type |
||
107 | * @return void |
||
108 | */ |
||
109 | public function setType($type) |
||
113 | |||
114 | /** |
||
115 | * Returns the required flag |
||
116 | * |
||
117 | * @return bool |
||
118 | */ |
||
119 | public function getRequired() |
||
123 | |||
124 | /** |
||
125 | * Sets the required flag |
||
126 | * |
||
127 | * @param bool $required |
||
128 | */ |
||
129 | public function setRequired($required) |
||
133 | |||
134 | /** |
||
135 | * Returns placeholder |
||
136 | * |
||
137 | * @return string |
||
138 | */ |
||
139 | public function getPlaceholder() |
||
143 | |||
144 | /** |
||
145 | * Sets placeholder |
||
146 | * |
||
147 | * @param string $placeholder |
||
148 | * @return void |
||
149 | */ |
||
150 | public function setPlaceholder($placeholder) |
||
154 | |||
155 | /** |
||
156 | * Returns default value |
||
157 | * |
||
158 | * @return string |
||
159 | */ |
||
160 | public function getDefaultValue() |
||
164 | |||
165 | /** |
||
166 | * Sets default value |
||
167 | * |
||
168 | * @param string $defaultValue |
||
169 | */ |
||
170 | public function setDefaultValue($defaultValue) |
||
174 | |||
175 | /** |
||
176 | * Returns settings |
||
177 | * |
||
178 | * @return string |
||
179 | */ |
||
180 | public function getSettings() |
||
184 | |||
185 | /** |
||
186 | * Sets settings |
||
187 | * |
||
188 | * @param string $settings |
||
189 | */ |
||
190 | public function setSettings($settings) |
||
194 | |||
195 | /** |
||
196 | * Explodes the given string and returns an array of options for check and radio fields |
||
197 | * |
||
198 | * @return array |
||
199 | */ |
||
200 | public function getSettingsForOption() |
||
218 | |||
219 | /** |
||
220 | * Returns the event |
||
221 | * |
||
222 | * @return Event |
||
223 | */ |
||
224 | public function getEvent() |
||
228 | |||
229 | /** |
||
230 | * Sets the event |
||
231 | * |
||
232 | * @param Event $event |
||
233 | * @return void |
||
234 | */ |
||
235 | public function setEvent($event) |
||
239 | |||
240 | /** |
||
241 | * Returns the field valueType |
||
242 | * |
||
243 | * @return int |
||
244 | */ |
||
245 | public function getValueType() |
||
259 | |||
260 | /** |
||
261 | * Returns the name of the partial for the field |
||
262 | * |
||
263 | * @return string |
||
264 | */ |
||
265 | public function getPartialName() |
||
269 | } |
||
270 |