1 | <?php |
||
20 | class FieldValue extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity |
||
21 | { |
||
22 | /** |
||
23 | * Value |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $value = ''; |
||
28 | |||
29 | /** |
||
30 | * The type of the value |
||
31 | * |
||
32 | * @var int |
||
33 | */ |
||
34 | protected $valueType = FieldValueType::TYPE_TEXT; |
||
35 | |||
36 | /** |
||
37 | * Field |
||
38 | * |
||
39 | * @var \DERHANSEN\SfEventMgt\Domain\Model\Registration\Field |
||
40 | */ |
||
41 | protected $field = null; |
||
42 | |||
43 | /** |
||
44 | * Registration |
||
45 | * |
||
46 | * @var Registration |
||
47 | */ |
||
48 | protected $registration = null; |
||
49 | |||
50 | /** |
||
51 | * Returns value depending on the valueType |
||
52 | * |
||
53 | * @return string|array |
||
54 | */ |
||
55 | public function getValue() |
||
64 | |||
65 | public function getValueForCsvExport() |
||
74 | |||
75 | /** |
||
76 | * Sets value |
||
77 | * |
||
78 | * @param string $value |
||
79 | * @return void |
||
80 | */ |
||
81 | public function setValue($value) |
||
85 | |||
86 | /** |
||
87 | * Returns field |
||
88 | * |
||
89 | * @return \DERHANSEN\SfEventMgt\Domain\Model\Registration\Field |
||
90 | */ |
||
91 | public function getField() |
||
95 | |||
96 | /** |
||
97 | * Sets field |
||
98 | * |
||
99 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Registration\Field $field |
||
100 | * @return void |
||
101 | */ |
||
102 | public function setField($field) |
||
106 | |||
107 | /** |
||
108 | * Returns registration |
||
109 | * |
||
110 | * @return Registration |
||
111 | */ |
||
112 | public function getRegistration() |
||
116 | |||
117 | /** |
||
118 | * Sets registration |
||
119 | * |
||
120 | * @param Registration $registration |
||
121 | * @return void |
||
122 | */ |
||
123 | public function setRegistration($registration) |
||
127 | |||
128 | /** |
||
129 | * Sets value type |
||
130 | * |
||
131 | * @return int |
||
132 | */ |
||
133 | public function getValueType() |
||
137 | |||
138 | /** |
||
139 | * Returns value type |
||
140 | * |
||
141 | * @param int $valueType |
||
142 | */ |
||
143 | public function setValueType($valueType) |
||
147 | } |
||
148 |