34 if (!empty($conf[
'if.']) && !$this->cObj->checkIf($conf[
'if.'])) {
40 $originalRec = $frontendController->currentRecord;
44 ++$frontendController->recordRegister[$originalRec];
46 $conf[
'table'] = isset($conf[
'table.']) ? trim($this->cObj->stdWrap($conf[
'table'], $conf[
'table.'])) : trim($conf[
'table']);
47 $conf[
'select.'] = !empty($conf[
'select.']) ? $conf[
'select.'] : [];
48 $renderObjName = $conf[
'renderObj'] ?:
'<' . $conf[
'table'];
49 $renderObjKey = $conf[
'renderObj'] ?
'renderObj' :
'';
50 $renderObjConf = $conf[
'renderObj.'];
51 $slide = isset($conf[
'slide.']) ? (int)$this->cObj->stdWrap($conf[
'slide'], $conf[
'slide.']) : (int)$conf[
'slide'];
55 $slideCollect = isset($conf[
'slide.'][
'collect.']) ? (int)$this->cObj->stdWrap($conf[
'slide.'][
'collect'], $conf[
'slide.'][
'collect.']) : (int)$conf[
'slide.'][
'collect'];
59 $slideCollectReverse = isset($conf[
'slide.'][
'collectReverse.']) ? (int)$this->cObj->stdWrap($conf[
'slide.'][
'collectReverse'], $conf[
'slide.'][
'collectReverse.']) : (int)$conf[
'slide.'][
'collectReverse'];
60 $slideCollectReverse = (bool)$slideCollectReverse;
61 $slideCollectFuzzy = isset($conf[
'slide.'][
'collectFuzzy.'])
62 ? (bool)$this->cObj->stdWrap($conf[
'slide.'][
'collectFuzzy'], $conf[
'slide.'][
'collectFuzzy.'])
63 : (bool)$conf[
'slide.'][
'collectFuzzy'];
65 $slideCollectFuzzy =
true;
71 $records = $this->cObj->getRecords($conf[
'table'], $conf[
'select.']);
73 if (!empty($records)) {
74 $this->cObj->currentRecordTotal = count($records);
78 $cObj = GeneralUtility::makeInstance(ContentObjectRenderer::class);
80 $this->cObj->currentRecordNumber = 0;
82 foreach ($records as $row) {
84 foreach (
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'tslib/class.tslib_content_content.php'][
'modifyDBRow'] ?? [] as $className) {
85 $_procObj = GeneralUtility::makeInstance($className);
86 $_procObj->modifyDBRow($row, $conf[
'table']);
88 if (!$frontendController->recordRegister[$conf[
'table'] .
':' . $row[
'uid']]) {
89 $this->cObj->currentRecordNumber++;
90 $cObj->parentRecordNumber = $this->cObj->currentRecordNumber;
91 $frontendController->currentRecord = $conf[
'table'] .
':' . $row[
'uid'];
95 $cobjValue .= $tmpValue;
99 if ($slideCollectReverse) {
100 $theValue = $cobjValue . $theValue;
102 $theValue .= $cobjValue;
104 if ($slideCollect > 0) {
111 $conf[
'select.'][
'pidInList'] = $this->cObj->getSlidePids($conf[
'select.'][
'pidInList'], $conf[
'select.'][
'pidInList.']);
112 if (isset($conf[
'select.'][
'pidInList.'])) {
113 unset($conf[
'select.'][
'pidInList.']);
115 $again = (string)$conf[
'select.'][
'pidInList'] !==
'';
117 }
while ($again && $slide && ((
string)$tmpValue ===
'' && $slideCollectFuzzy || $slideCollect));
119 $wrap = isset($conf[
'wrap.']) ? $this->cObj->stdWrap($conf[
'wrap'], $conf[
'wrap.']) : $conf[
'wrap'];
121 $theValue = $this->cObj->wrap($theValue, $wrap);
123 if (isset($conf[
'stdWrap.'])) {
124 $theValue = $this->cObj->stdWrap($theValue, $conf[
'stdWrap.']);
127 $frontendController->currentRecord = $originalRec;
129 --$frontendController->recordRegister[$originalRec];
151 return GeneralUtility::makeInstance(TimeTracker::class);