1 | <?php |
||
27 | class Field extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
||
28 | { |
||
29 | /** |
||
30 | * The title |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $title = ''; |
||
35 | |||
36 | /** |
||
37 | * Type - possible values |
||
38 | * |
||
39 | * "input", "radio", "check" |
||
40 | * |
||
41 | * @var string |
||
42 | */ |
||
43 | protected $type = ''; |
||
44 | |||
45 | /** |
||
46 | * Field is required |
||
47 | * |
||
48 | * @var bool |
||
49 | */ |
||
50 | protected $required = false; |
||
51 | |||
52 | /** |
||
53 | * Placeholder |
||
54 | * |
||
55 | * @var string |
||
56 | */ |
||
57 | protected $placeholder = ''; |
||
58 | |||
59 | /** |
||
60 | * Default value |
||
61 | * |
||
62 | * @var string |
||
63 | */ |
||
64 | protected $defaultValue = ''; |
||
65 | |||
66 | /** |
||
67 | * Settings |
||
68 | * |
||
69 | * @var string |
||
70 | */ |
||
71 | protected $settings = ''; |
||
72 | |||
73 | /** |
||
74 | * @var \DERHANSEN\SfEventMgt\Domain\Model\Event |
||
75 | */ |
||
76 | protected $event = null; |
||
77 | |||
78 | /** |
||
79 | * Returns the title |
||
80 | * |
||
81 | * @return string |
||
82 | */ |
||
83 | public function getTitle() |
||
87 | |||
88 | /** |
||
89 | * Sets the title |
||
90 | * |
||
91 | * @param string $title |
||
92 | * @return void |
||
93 | */ |
||
94 | public function setTitle($title) |
||
98 | |||
99 | /** |
||
100 | * Returns the type |
||
101 | * |
||
102 | * @return string |
||
103 | */ |
||
104 | public function getType() |
||
108 | |||
109 | /** |
||
110 | * Sets the type |
||
111 | * |
||
112 | * @param string $type |
||
113 | * @return void |
||
114 | */ |
||
115 | public function setType($type) |
||
119 | |||
120 | /** |
||
121 | * Returns the required flag |
||
122 | * |
||
123 | * @return bool |
||
124 | */ |
||
125 | public function getRequired() |
||
129 | |||
130 | /** |
||
131 | * Sets the required flag |
||
132 | * |
||
133 | * @param bool $required |
||
134 | */ |
||
135 | public function setRequired($required) |
||
139 | |||
140 | /** |
||
141 | * Returns placeholder |
||
142 | * |
||
143 | * @return string |
||
144 | */ |
||
145 | public function getPlaceholder() |
||
149 | |||
150 | /** |
||
151 | * Sets placeholder |
||
152 | * |
||
153 | * @param string $placeholder |
||
154 | * @return void |
||
155 | */ |
||
156 | public function setPlaceholder($placeholder) |
||
160 | |||
161 | /** |
||
162 | * Returns default value |
||
163 | * |
||
164 | * @return string |
||
165 | */ |
||
166 | public function getDefaultValue() |
||
170 | |||
171 | /** |
||
172 | * Sets default value |
||
173 | * |
||
174 | * @param string $defaultValue |
||
175 | */ |
||
176 | public function setDefaultValue($defaultValue) |
||
180 | |||
181 | /** |
||
182 | * Returns settings |
||
183 | * |
||
184 | * @return string |
||
185 | */ |
||
186 | public function getSettings() |
||
190 | |||
191 | /** |
||
192 | * Sets settings |
||
193 | * |
||
194 | * @param string $settings |
||
195 | */ |
||
196 | public function setSettings($settings) |
||
200 | |||
201 | /** |
||
202 | * Explodes the given string and returns an array of options for check and radio fields |
||
203 | * |
||
204 | * @return array |
||
205 | */ |
||
206 | public function getSettingsForOption() |
||
223 | |||
224 | /** |
||
225 | * Returns the event |
||
226 | * |
||
227 | * @return Event |
||
228 | */ |
||
229 | public function getEvent() |
||
233 | |||
234 | /** |
||
235 | * Sets the event |
||
236 | * |
||
237 | * @param Event $event |
||
238 | * @return void |
||
239 | */ |
||
240 | public function setEvent($event) |
||
244 | |||
245 | /** |
||
246 | * Returns the field valueType |
||
247 | * |
||
248 | * @return int |
||
249 | */ |
||
250 | public function getValueType() |
||
263 | } |
||
264 |