'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').''; $ffs = GeneralUtility::makeInstance(FlexFormService::class); $flex = $ffs->convertFlexFormContentToArray($row['pi_flexform']); $sections = ''; $sections .= 'Mo–Mi Woche 1: '.($flex["section1"] != '' ? '✓' : '×').'
'; $sections .= 'Do–Sa Woche 1: '.($flex["section2"] != '' ? '✓' : '×').'
'; $sections .= 'So–Di Woche 1/2: '.($flex["section3"] != '' ? '✓' : '×').'
'; $sections .= 'Mi–Fr Woche 2: '.($flex["section4"] != '' ? '✓' : '×').'
'; $sections .= 'Sa–So Woche 2: '.($flex["section5"] != '' ? '✓' : '×'); $sectionStart = new \DateTime(); $sectionStart->setTimestamp($flex['starttime']); $sectionStart = $sectionStart->format('W'); $sectionEnd = new \DateTime(); $sectionEnd->setTimestamp($flex['starttime']); $sectionEnd->modify('+ 13 days'); $sectionEnd = $sectionEnd->format('W'); $itemContent .= '
'.\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:mrm_be/Resources/Private/Language/locallang_ttc.xlf:'.$row['CType'].'.title', '').' (Kalenderwochen '.$sectionStart.' und '.$sectionEnd.'): '.$flex['key'].'
'.$sections.'
'; $drawItem = false; } } }