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 | * @var string |
||
74 | */ |
||
75 | protected $text; |
||
76 | |||
77 | /** |
||
78 | * @var int |
||
79 | */ |
||
80 | protected $datepickermode; |
||
81 | |||
82 | /** |
||
83 | * @var string |
||
84 | */ |
||
85 | protected $datepickermodeType; |
||
86 | |||
87 | /** |
||
88 | * Returns the title |
||
89 | * |
||
90 | * @return string |
||
91 | */ |
||
92 | public function getTitle() |
||
96 | |||
97 | /** |
||
98 | * Sets the title |
||
99 | * |
||
100 | * @param string $title |
||
101 | * @return void |
||
102 | */ |
||
103 | public function setTitle($title) |
||
107 | |||
108 | /** |
||
109 | * Returns the type |
||
110 | * |
||
111 | * @return string |
||
112 | */ |
||
113 | public function getType() |
||
117 | |||
118 | /** |
||
119 | * Sets the type |
||
120 | * |
||
121 | * @param string $type |
||
122 | * @return void |
||
123 | */ |
||
124 | public function setType($type) |
||
128 | |||
129 | /** |
||
130 | * Returns the required flag |
||
131 | * |
||
132 | * @return bool |
||
133 | */ |
||
134 | public function getRequired() |
||
138 | |||
139 | /** |
||
140 | * Sets the required flag |
||
141 | * |
||
142 | * @param bool $required |
||
143 | */ |
||
144 | public function setRequired($required) |
||
148 | |||
149 | /** |
||
150 | * Returns placeholder |
||
151 | * |
||
152 | * @return string |
||
153 | */ |
||
154 | public function getPlaceholder() |
||
158 | |||
159 | /** |
||
160 | * Sets placeholder |
||
161 | * |
||
162 | * @param string $placeholder |
||
163 | * @return void |
||
164 | */ |
||
165 | public function setPlaceholder($placeholder) |
||
169 | |||
170 | /** |
||
171 | * Returns default value |
||
172 | * |
||
173 | * @return string |
||
174 | */ |
||
175 | public function getDefaultValue() |
||
179 | |||
180 | /** |
||
181 | * Sets default value |
||
182 | * |
||
183 | * @param string $defaultValue |
||
184 | */ |
||
185 | public function setDefaultValue($defaultValue) |
||
189 | |||
190 | /** |
||
191 | * Returns settings |
||
192 | * |
||
193 | * @return string |
||
194 | */ |
||
195 | public function getSettings() |
||
199 | |||
200 | /** |
||
201 | * Sets settings |
||
202 | * |
||
203 | * @param string $settings |
||
204 | */ |
||
205 | public function setSettings($settings) |
||
209 | |||
210 | /** |
||
211 | * Explodes the given string and returns an array of options for check and radio fields |
||
212 | * |
||
213 | * @return array |
||
214 | */ |
||
215 | public function getSettingsForOption() |
||
233 | |||
234 | /** |
||
235 | * Returns the event |
||
236 | * |
||
237 | * @return Event |
||
238 | */ |
||
239 | public function getEvent() |
||
243 | |||
244 | /** |
||
245 | * Sets the event |
||
246 | * |
||
247 | * @param Event $event |
||
248 | * @return void |
||
249 | */ |
||
250 | public function setEvent($event) |
||
254 | |||
255 | /** |
||
256 | * Returns the field valueType |
||
257 | * |
||
258 | * @return int |
||
259 | */ |
||
260 | public function getValueType() |
||
277 | |||
278 | /** |
||
279 | * Returns the name of the partial for the field |
||
280 | * |
||
281 | * @return string |
||
282 | */ |
||
283 | public function getPartialName() |
||
287 | |||
288 | /** |
||
289 | * Returns the text |
||
290 | * |
||
291 | * @return string |
||
292 | */ |
||
293 | public function getText() |
||
297 | |||
298 | /** |
||
299 | * Sets the text |
||
300 | * |
||
301 | * @param string $text |
||
302 | * @return void |
||
303 | */ |
||
304 | public function setText($text) |
||
308 | |||
309 | /** |
||
310 | * Returns the datepickermode |
||
311 | * |
||
312 | * @return int |
||
313 | */ |
||
314 | public function getDatepickermode() |
||
318 | |||
319 | /** |
||
320 | * Sets the datepickermode |
||
321 | * |
||
322 | * @param int $datepickermode |
||
323 | * @return void |
||
324 | */ |
||
325 | public function setDatepickermode($datepickermode) |
||
329 | |||
330 | /** |
||
331 | * Returns the datepickermode type as string |
||
332 | * |
||
333 | * @return string |
||
334 | */ |
||
335 | public function getDatepickermodeType() |
||
346 | } |
||
347 |