1 | <?php |
||
27 | class PrefillMultiValueFieldViewHelper extends AbstractViewHelper |
||
28 | { |
||
29 | /** |
||
30 | * @var \TYPO3\CMS\Extbase\Property\PropertyMapper |
||
31 | */ |
||
32 | protected $propertyMapper = null; |
||
33 | |||
34 | /** |
||
35 | * @param PropertyMapper $propertyMapper |
||
36 | */ |
||
37 | public function injectPropertyMapper(\TYPO3\CMS\Extbase\Property\PropertyMapper $propertyMapper) |
||
41 | |||
42 | /** |
||
43 | * Returns, if the given $currentValue is selected/checked for the given registration field |
||
44 | * If no originalRequest exist (form is not submitted), true is returned if the given $currentValue |
||
45 | * matches the default value of the field |
||
46 | * |
||
47 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Registration\Field $registrationField |
||
48 | * @param string $currentValue |
||
49 | * @return bool |
||
50 | */ |
||
51 | public function render($registrationField, $currentValue) |
||
65 | |||
66 | /** |
||
67 | * Returns the submitted value for the given field uid |
||
68 | * |
||
69 | * @param array $submittedValues |
||
70 | * @param int $fieldUid |
||
71 | * @param string $currentValue |
||
72 | * @return bool |
||
73 | */ |
||
74 | protected function getFieldValueFromArguments($submittedValues, $fieldUid, $currentValue) |
||
86 | |||
87 | /** |
||
88 | * @param FieldValue $fieldValue |
||
89 | * @param string $currentValue |
||
90 | * @return bool |
||
91 | */ |
||
92 | protected function isGivenValueSelected($fieldValue, $currentValue) |
||
101 | |||
102 | /** |
||
103 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Registration\Field $registrationField |
||
104 | * @param $currentValue |
||
105 | * @return bool |
||
106 | */ |
||
107 | protected function getFieldValueFromDefaultProperty($registrationField, $currentValue) |
||
112 | } |
||
113 |